summaryrefslogtreecommitdiffstats
path: root/src/ex_getln.c
diff options
context:
space:
mode:
authorK.Takata <kentkt@csc.jp>2023-05-29 16:08:08 +0100
committerBram Moolenaar <Bram@vim.org>2023-05-29 16:08:08 +0100
commit9cf6ab133227ac7e9169941752293bb7178d8e38 (patch)
tree4ea6769eddb5795364ce81e1fbf26da334e18a9c /src/ex_getln.c
parent05843e89601c03389a2d7978e7e16aec641a3dc4 (diff)
patch 9.0.1588: Incsearch not triggered when pasting clipboard registerv9.0.1588
Problem: Incsearch not triggered when pasting clipboard register on the command line. Solution: Also set "literally" when using a clipboard register. (Ken Takata, closes #12460)
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r--src/ex_getln.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index fbda2cc00d..00d32920b6 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -1221,7 +1221,12 @@ cmdline_insert_reg(int *gotesc UNUSED)
#endif
if (c != ESC) // use ESC to cancel inserting register
{
- literally = i == Ctrl_R;
+ literally = i == Ctrl_R
+#ifdef FEAT_CLIPBOARD
+ || (clip_star.available && c == '*')
+ || (clip_plus.available && c == '+')
+#endif
+ ;
cmdline_paste(c, literally, FALSE);
#ifdef FEAT_EVAL