diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-06-26 15:54:00 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-08-15 17:58:35 +0800 |
commit | 55da52963b6e13ecc402b6574cf3bd396d11d23d (patch) | |
tree | 1b45b1ba5c3fa4ed66dc74dce66acfa27e761524 /src/nvim/normal.c | |
parent | 93ba82183122b6b6e3d388d0e0fad4a538052803 (diff) | |
download | rneovim-55da52963b6e13ecc402b6574cf3bd396d11d23d.tar.gz rneovim-55da52963b6e13ecc402b6574cf3bd396d11d23d.tar.bz2 rneovim-55da52963b6e13ecc402b6574cf3bd396d11d23d.zip |
vim-patch:8.2.5109: mode not updated after CTRL-O CTRL-C in Insert mode
Problem: Mode not updated after CTRL-O CTRL-C in Insert mode.
Solution: Set redraw_mode and use it. (closes vim/vim#10581)
https://github.com/vim/vim/commit/7a1d32809bb5c1527314000983e75125d79192e0
Diffstat (limited to 'src/nvim/normal.c')
-rw-r--r-- | src/nvim/normal.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c index c28ffaa22e..a623c14a8e 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -1284,7 +1284,7 @@ static void normal_redraw(NormalState *s) update_screen(INVERTED); } else if (must_redraw) { update_screen(0); - } else if (redraw_cmdline || clear_cmdline) { + } else if (redraw_cmdline || clear_cmdline || redraw_mode) { showmode(); } @@ -6930,6 +6930,10 @@ static void nv_esc(cmdarg_T *cap) } } + if (restart_edit != 0) { + redraw_mode = true; // remove "-- (insert) --" + } + restart_edit = 0; if (cmdwin_type != 0) { |