summaryrefslogtreecommitdiffstats
path: root/src/clipboard.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-06-04 17:11:47 +0200
committerBram Moolenaar <Bram@vim.org>2021-06-04 17:11:47 +0200
commit6e0b553fa12fc5ad5d8ee3d8457e7cb16f38b56f (patch)
treec44800eb22c5b806dbc18c05a7d890e8b4b1f905 /src/clipboard.c
parent4f3c57f7980592b25f483e5953799c010a8ae196 (diff)
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clipboard.c b/src/clipboard.c
index c26349291e..b1da99bcbe 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);
}
/*