forked from aniani/vim
patch 8.1.0125: virtual edit replace with multi-byte fails at end of line
Problem: Virtual edit replace with multi-byte fails at end of line. (Lukas Werling) Solution: use ins_char() to add the character. (Christian Brabandt, closes #3114) Rename PCHAR() to PBYTE() to avoid mistakes like this.
This commit is contained in:
@@ -14,9 +14,9 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* PCHAR(lp, c) - put character 'c' at position 'lp'
|
||||
* PBYTE(lp, c) - put byte 'c' at position 'lp'
|
||||
*/
|
||||
#define PCHAR(lp, c) (*(ml_get_buf(curbuf, (lp).lnum, TRUE) + (lp).col) = (c))
|
||||
#define PBYTE(lp, c) (*(ml_get_buf(curbuf, (lp).lnum, TRUE) + (lp).col) = (c))
|
||||
|
||||
/*
|
||||
* Position comparisons
|
||||
|
Reference in New Issue
Block a user