diff options
author | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2016-11-22 07:19:20 +0900 |
---|---|---|
committer | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2016-11-24 07:04:39 +0900 |
commit | 81591b146aadadc52f0216d38e7d19ae25dcabc8 (patch) | |
tree | aead8efb6f3c2b126e2cf1fba4df4f0317d1a738 /src/nvim/screen.c | |
parent | 5f0260808cf3712718555ee177476b8aefd78280 (diff) | |
download | rneovim-81591b146aadadc52f0216d38e7d19ae25dcabc8.tar.gz rneovim-81591b146aadadc52f0216d38e7d19ae25dcabc8.tar.bz2 rneovim-81591b146aadadc52f0216d38e7d19ae25dcabc8.zip |
vim-patch:7.4.1696
Problem: When using :stopinsert in a silent mapping the "INSERT" message
isn't cleared. (Coacher)
Solution: Always clear the message. (Christian Brabandt, closes vim/vim#718)
https://github.com/vim/vim/commit/fd773e9e88add7d1ffef890fb9f3a00d613b4326
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r-- | src/nvim/screen.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c index cee3c62f43..5bf743c4df 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -6827,12 +6827,18 @@ void unshowmode(bool force) if (!redrawing() || (!force && char_avail() && !KeyTyped)) { redraw_cmdline = true; // delete mode later } else { + clearmode(); + } +} + +// Clear the mode message. +void clearmode(void) +{ msg_pos_mode(); if (Recording) { recording_mode(hl_attr(HLF_CM)); } msg_clr_eos(); - } } static void recording_mode(int attr) |