diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-29 00:06:37 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-29 00:08:15 -0400 |
commit | 7c38f60b3babe332de2b61fa829e0ea6ba27fb3a (patch) | |
tree | b33e69f82e12ec922553a205000723c48889d133 /src/nvim/getchar.c | |
parent | 461d46d8ace1b6950bf2733de9cb2b290453d86d (diff) | |
download | rneovim-7c38f60b3babe332de2b61fa829e0ea6ba27fb3a.tar.gz rneovim-7c38f60b3babe332de2b61fa829e0ea6ba27fb3a.tar.bz2 rneovim-7c38f60b3babe332de2b61fa829e0ea6ba27fb3a.zip |
vim-patch:8.1.0022: repeating put from expression register fails
Problem: Repeating put from expression register fails.
Solution: Re-evaluate the expression register. (Andy Massimino,
closes vim/vim#2945)
https://github.com/vim/vim/commit/833093bfb0e4a7f89b5adc66babcfa8ac09cfda9
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 0379b1cadb..8dae82d137 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -755,6 +755,13 @@ int start_redo(long count, int old_redo) if (c >= '1' && c < '9') ++c; add_char_buff(&readbuf2, c); + + // the expression register should be re-evaluated + if (c == '=') { + add_char_buff(&readbuf2, CAR); + cmd_silent = true; + } + c = read_redo(FALSE, old_redo); } |