vim-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 vim/vim#2857)
e2c8d83926
This commit is contained in:
Jan Edmund Lazo
2018-08-16 21:25:33 -04:00
parent 68cd18eb04
commit 015df9c66e
4 changed files with 18 additions and 3 deletions

View File

@@ -1257,6 +1257,14 @@ int 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;