aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/edit.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-06-26 14:50:57 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-08-15 17:58:35 +0800
commit53b0688ac0cad5db4840bbed1d7e5ccac3a1ee42 (patch)
tree81221e4b4bae9c173ef00a4349e52abbe08c440f /src/nvim/edit.c
parentb47f3131515df91a4438adbc1ed2756a1fc453d7 (diff)
downloadrneovim-53b0688ac0cad5db4840bbed1d7e5ccac3a1ee42.tar.gz
rneovim-53b0688ac0cad5db4840bbed1d7e5ccac3a1ee42.tar.bz2
rneovim-53b0688ac0cad5db4840bbed1d7e5ccac3a1ee42.zip
vim-patch:8.1.1189: mode is not cleared when leaving Insert mode
Problem: Mode is not cleared when leaving Insert mode. Solution: Clear the mode when got_int is set. (Ozaki Kiichi, closes vim/vim#4270) https://github.com/vim/vim/commit/abc7c7fc5a098374f5543a237e6c9dd918848b34
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r--src/nvim/edit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index ea64f2d544..e1473f30c8 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -4251,7 +4251,7 @@ static bool ins_esc(long *count, int cmdchar, bool nomove)
// Otherwise remove the mode message.
if (reg_recording != 0 || restart_edit != NUL) {
showmode();
- } else if (p_smd && !skip_showmode()) {
+ } else if (p_smd && (got_int || !skip_showmode())) {
msg("");
}
// Exit Insert mode