Mercurial > vim
changeset 23754:c425989fe7ac v8.2.2418
patch 8.2.2418: color not changed if ModeMsg highlight is set in InsertEnter
Commit: https://github.com/vim/vim/commit/2e6cdb91e8dea08301f31bc83188c06112eb7f57
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 28 11:07:44 2021 +0100
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 28 Jan 2021 11:15:04 +0100 |
parents | b7ab2ae790cc |
children | 87ca35959711 |
files | src/edit.c src/version.c |
diffstat | 2 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/edit.c +++ b/src/edit.c @@ -196,6 +196,10 @@ edit( #endif 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 // case the text was modified. Since Insert mode was not started yet // a call to check_cursor_col() may move the cursor, especially with