diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-06-28 19:26:28 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-06-28 19:26:28 +0200 |
commit | 630afe889a2a02b367ea8eaaa48e66ed81e77ff3 (patch) | |
tree | b842a80b4031b81954a44a68d8e7064722b60e26 /src/macros.h | |
parent | d8b37a53bd29cab78c6997aa75207385213f23e2 (diff) | |
download | vim-git-630afe889a2a02b367ea8eaaa48e66ed81e77ff3.tar.gz |
patch 8.1.0125: virtual edit replace with multi-byte fails at end of linev8.1.0125
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.
Diffstat (limited to 'src/macros.h')
-rw-r--r-- | src/macros.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/macros.h b/src/macros.h index fcd1a829d..c91b4b620 100644 --- a/src/macros.h +++ b/src/macros.h @@ -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 |