diff options
author | Naveen Kumar Molleti <nerd.naveen@gmail.com> | 2014-09-15 00:54:39 +0530 |
---|---|---|
committer | Naveen Kumar Molleti <nerd.naveen@gmail.com> | 2014-09-15 15:35:49 +0530 |
commit | 4f3d49d92104b871975f963d3f7cb1df111c577b (patch) | |
tree | 77d2f84fb9b0a3cfccd6ddd364a3ac8190bd74d5 /src/nvim/getchar.c | |
parent | 0838b9773958d06b87e4b290b2716f19f904fa95 (diff) | |
download | rneovim-4f3d49d92104b871975f963d3f7cb1df111c577b.tar.gz rneovim-4f3d49d92104b871975f963d3f7cb1df111c577b.tar.bz2 rneovim-4f3d49d92104b871975f963d3f7cb1df111c577b.zip |
vim-patch:7.4.387
Problem: "4gro" replaces one character then executes "ooo". (Urtica
Dioica)
Solution: Write the ESC in the second stuff buffer.
https://code.google.com/p/vim/source/detail?r=v7-4-387
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r-- | src/nvim/getchar.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c index 6c772a8a66..0d61172d69 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -601,6 +601,13 @@ void stuffReadbuff(char_u *s) add_buff(&readbuf1, s, -1L); } +/// Append string "s" to the redo stuff buffer. +/// @remark CSI and K_SPECIAL must already have been escaped. +void stuffRedoReadbuff(char_u *s) +{ + add_buff(&readbuf2, s, -1L); +} + void stuffReadbuffLen(char_u *s, long len) { add_buff(&readbuf1, s, len); |