summaryrefslogtreecommitdiffstats
path: root/src/ex_getln.c
diff options
context:
space:
mode:
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