aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/normal.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-15 18:38:46 +0800
committerGitHub <noreply@github.com>2022-08-15 18:38:46 +0800
commitd33424983312806fb683eaa6bd720fe418c1299e (patch)
tree1b45b1ba5c3fa4ed66dc74dce66acfa27e761524 /src/nvim/normal.c
parent9a3877ff9d4db15189b171b4a487d57768abf0a9 (diff)
parent55da52963b6e13ecc402b6574cf3bd396d11d23d (diff)
downloadrneovim-d33424983312806fb683eaa6bd720fe418c1299e.tar.gz
rneovim-d33424983312806fb683eaa6bd720fe418c1299e.tar.bz2
rneovim-d33424983312806fb683eaa6bd720fe418c1299e.zip
Merge pull request #19098 from zeertzjq/vim-8.1.0822
vim-patch:8.1.{partial:0822,1189,1192},8.2.5109: 'showmode' fixes
Diffstat (limited to 'src/nvim/normal.c')
-rw-r--r--src/nvim/normal.c6
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) {