mirror of
https://github.com/neovim/neovim.git
synced 2025-09-22 19:18:34 +00:00
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)
fd773e9e88
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user