0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 8.0.1787: cannot insert the whole cursor line

Problem:    Cannot insert the whole cursor line.
Solution:   Make CTRL-R CTRL-L work. (Andy Massimino, closes #2857)
This commit is contained in:
Bram Moolenaar
2018-05-01 19:24:03 +02:00
parent b2ac14c0b5
commit e2c8d83926
5 changed files with 19 additions and 3 deletions

View File

@@ -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;