summaryrefslogtreecommitdiff
path: root/src/ops.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-05-01 19:24:03 +0200
committerBram Moolenaar <Bram@vim.org>2018-05-01 19:24:03 +0200
commite2c8d8392684a940cc5608acc73ff47486bd7b92 (patch)
tree2ade577a87c364b8453f0e0296657c71b7d130a4 /src/ops.c
parentb2ac14c0b5e23f8ab97c5c784bcd83e13ba8ded3 (diff)
downloadvim-git-e2c8d8392684a940cc5608acc73ff47486bd7b92.tar.gz
patch 8.0.1787: cannot insert the whole cursor linev8.0.1787
Problem: Cannot insert the whole cursor line. Solution: Make CTRL-R CTRL-L work. (Andy Massimino, closes #2857)
Diffstat (limited to 'src/ops.c')
-rw-r--r--src/ops.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ops.c b/src/ops.c
index 0902b0479..9af466b3f 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -1573,6 +1573,14 @@ get_spec_reg(
*allocated = TRUE;
return TRUE;
+ case Ctrl_L: /* Line under cursor */
+ if (!errmsg)
+ return FALSE;
+
+ *argp = ml_get_buf(curwin->w_buffer,
+ curwin->w_cursor.lnum, FALSE);
+ return TRUE;
+
case '_': /* black hole: always empty */
*argp = (char_u *)"";
return TRUE;