diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-16 21:25:33 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-16 21:33:30 -0400 |
commit | 015df9c66e66283277c3709376bf6d1f83d55f53 (patch) | |
tree | 40a87e5d5ee8a60e1e693e0a9d9d522fc979697f /src/nvim/ops.c | |
parent | 68cd18eb0413534807f75a45bb3008c9f2b52947 (diff) | |
download | rneovim-015df9c66e66283277c3709376bf6d1f83d55f53.tar.gz rneovim-015df9c66e66283277c3709376bf6d1f83d55f53.tar.bz2 rneovim-015df9c66e66283277c3709376bf6d1f83d55f53.zip |
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)
https://github.com/vim/vim/commit/e2c8d8392684a940cc5608acc73ff47486bd7b92
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r-- | src/nvim/ops.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index 7defde731a..af95f94946 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -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; |