diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-05-01 19:24:03 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-05-01 19:24:03 +0200 |
commit | e2c8d8392684a940cc5608acc73ff47486bd7b92 (patch) | |
tree | 2ade577a87c364b8453f0e0296657c71b7d130a4 /src/ops.c | |
parent | b2ac14c0b5e23f8ab97c5c784bcd83e13ba8ded3 (diff) | |
download | vim-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.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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; |