diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-06-04 17:11:47 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-06-04 17:11:47 +0200 |
commit | 6e0b553fa12fc5ad5d8ee3d8457e7cb16f38b56f (patch) | |
tree | c44800eb22c5b806dbc18c05a7d890e8b4b1f905 /src/mbyte.c | |
parent | 4f3c57f7980592b25f483e5953799c010a8ae196 (diff) | |
download | vim-git-6e0b553fa12fc5ad5d8ee3d8457e7cb16f38b56f.tar.gz |
patch 8.2.2933: when 'clipboard' is "unnamed" zp does not work correctlyv8.2.2933
Problem: When 'clipboard' is "unnamed" zp and zP do not work correctly.
Solution: Pass -1 to str_to_reg() and fix computing the character width
instead of using the byte length. (Christian Brabandt,
closes #8301, closes #8317)
Diffstat (limited to 'src/mbyte.c')
-rw-r--r-- | src/mbyte.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/mbyte.c b/src/mbyte.c index 6df3a15de..4b78eee0e 100644 --- a/src/mbyte.c +++ b/src/mbyte.c @@ -4308,7 +4308,6 @@ mb_charlen(char_u *str) return count; } -#if (defined(FEAT_SPELL) || defined(FEAT_EVAL)) || defined(PROTO) /* * Like mb_charlen() but for a string with specified length. */ @@ -4323,7 +4322,6 @@ mb_charlen_len(char_u *str, int len) return count; } -#endif /* * Try to un-escape a multi-byte character. |