Mercurial > vim
diff src/ops.c @ 13831:1f95ec5de238 v8.0.1787
patch 8.0.1787: cannot insert the whole cursor line
commit https://github.com/vim/vim/commit/e2c8d8392684a940cc5608acc73ff47486bd7b92
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue May 1 19:24:03 2018 +0200
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 https://github.com/vim/vim/issues/2857)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 01 May 2018 19:30:06 +0200 |
parents | 7ed76dcf0d94 |
children | e124262d435e |
line wrap: on
line diff
--- 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;