diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-08-25 04:02:57 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-12-25 19:25:30 -0500 |
commit | 4afddb8f571d9e61eab60596c59a27452e9bc839 (patch) | |
tree | bdd1cc31165733adce9e9410b0704a995e3b5336 /src/nvim/edit.c | |
parent | 0519a75f6eca1065a4d0184f99c71ae03a99b9b1 (diff) | |
download | rneovim-4afddb8f571d9e61eab60596c59a27452e9bc839.tar.gz rneovim-4afddb8f571d9e61eab60596c59a27452e9bc839.tar.bz2 rneovim-4afddb8f571d9e61eab60596c59a27452e9bc839.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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index 539418cf09..ebbb6e803a 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -7803,7 +7803,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 |