mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
patch 8.2.2418: color not changed if ModeMsg highlight is set in InsertEnter
Problem: Color not changed if ModeMsg highlight is set in InsertEnter autocmd event. (Paul Swanson) Solution: Call highlight_changed() after triggering InsertEnter. (closes #7751)
This commit is contained in:
@@ -196,6 +196,10 @@ edit(
|
|||||||
#endif
|
#endif
|
||||||
ins_apply_autocmds(EVENT_INSERTENTER);
|
ins_apply_autocmds(EVENT_INSERTENTER);
|
||||||
|
|
||||||
|
// Check for changed highlighting, e.g. for ModeMsg.
|
||||||
|
if (need_highlight_changed)
|
||||||
|
highlight_changed();
|
||||||
|
|
||||||
// Make sure the cursor didn't move. Do call check_cursor_col() in
|
// Make sure the cursor didn't move. Do call check_cursor_col() in
|
||||||
// case the text was modified. Since Insert mode was not started yet
|
// case the text was modified. Since Insert mode was not started yet
|
||||||
// a call to check_cursor_col() may move the cursor, especially with
|
// a call to check_cursor_col() may move the cursor, especially with
|
||||||
|
@@ -750,6 +750,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 */
|
||||||
|
/**/
|
||||||
|
2418,
|
||||||
/**/
|
/**/
|
||||||
2417,
|
2417,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user