mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
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:
parent
8bc189e81a
commit
fd773e9e88
@ -10040,6 +10040,7 @@ ex_stopinsert(exarg_T *eap UNUSED)
|
|||||||
{
|
{
|
||||||
restart_edit = 0;
|
restart_edit = 0;
|
||||||
stop_insert_mode = TRUE;
|
stop_insert_mode = TRUE;
|
||||||
|
clearmode();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -47,6 +47,7 @@ int screen_ins_lines(int off, int row, int line_count, int end, win_T *wp);
|
|||||||
int screen_del_lines(int off, int row, int line_count, int end, int force, win_T *wp);
|
int screen_del_lines(int off, int row, int line_count, int end, int force, win_T *wp);
|
||||||
int showmode(void);
|
int showmode(void);
|
||||||
void unshowmode(int force);
|
void unshowmode(int force);
|
||||||
|
void clearmode(void);
|
||||||
void get_trans_bufname(buf_T *buf);
|
void get_trans_bufname(buf_T *buf);
|
||||||
int redrawing(void);
|
int redrawing(void);
|
||||||
int messaging(void);
|
int messaging(void);
|
||||||
|
11
src/screen.c
11
src/screen.c
@ -10184,12 +10184,19 @@ unshowmode(int force)
|
|||||||
if (!redrawing() || (!force && char_avail() && !KeyTyped))
|
if (!redrawing() || (!force && char_avail() && !KeyTyped))
|
||||||
redraw_cmdline = TRUE; /* delete mode later */
|
redraw_cmdline = TRUE; /* delete mode later */
|
||||||
else
|
else
|
||||||
{
|
clearmode();
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Clear the mode message.
|
||||||
|
*/
|
||||||
|
void
|
||||||
|
clearmode()
|
||||||
|
{
|
||||||
msg_pos_mode();
|
msg_pos_mode();
|
||||||
if (Recording)
|
if (Recording)
|
||||||
recording_mode(hl_attr(HLF_CM));
|
recording_mode(hl_attr(HLF_CM));
|
||||||
msg_clr_eos();
|
msg_clr_eos();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -748,6 +748,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1696,
|
||||||
/**/
|
/**/
|
||||||
1695,
|
1695,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user