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/clipboard.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/clipboard.c')
-rw-r--r-- | src/clipboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clipboard.c b/src/clipboard.c index c26349291..b1da99bcb 100644 --- a/src/clipboard.c +++ b/src/clipboard.c @@ -2090,7 +2090,7 @@ clip_yank_selection( clip_free_selection(cbd); - str_to_reg(y_ptr, type, str, len, 0L, FALSE); + str_to_reg(y_ptr, type, str, len, -1, FALSE); } /* |