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:
Shougo Matsushita 2016-11-22 07:19:20 +09:00
parent 5f0260808c
commit 81591b146a
4 changed files with 10 additions and 4 deletions

View File

@ -2322,7 +2322,6 @@ static int ins_compl_make_cyclic(void)
return count;
}
// Set variables that store noselect and noinsert behavior from the
// 'completeopt' value.
void completeopt_was_set(void)

View File

@ -7970,7 +7970,8 @@ static void ex_startinsert(exarg_T *eap)
static void ex_stopinsert(exarg_T *eap)
{
restart_edit = 0;
stop_insert_mode = TRUE;
stop_insert_mode = true;
clearmode();
}
/*

View File

@ -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)

View File

@ -748,7 +748,7 @@ static int included_patches[] = {
// 1699,
// 1698 NA
1697,
// 1696,
1696,
1695,
// 1694 NA
// 1693 NA