forked from aniani/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 #718)
This commit is contained in:
19
src/screen.c
19
src/screen.c
@@ -10184,12 +10184,19 @@ unshowmode(int force)
|
||||
if (!redrawing() || (!force && char_avail() && !KeyTyped))
|
||||
redraw_cmdline = TRUE; /* delete mode later */
|
||||
else
|
||||
{
|
||||
msg_pos_mode();
|
||||
if (Recording)
|
||||
recording_mode(hl_attr(HLF_CM));
|
||||
msg_clr_eos();
|
||||
}
|
||||
clearmode();
|
||||
}
|
||||
|
||||
/*
|
||||
* Clear the mode message.
|
||||
*/
|
||||
void
|
||||
clearmode()
|
||||
{
|
||||
msg_pos_mode();
|
||||
if (Recording)
|
||||
recording_mode(hl_attr(HLF_CM));
|
||||
msg_clr_eos();
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user