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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user