Patch 8.2.2418
Problem:    Color not changed if ModeMsg highlight is set in InsertEnter
            autocmd event. (Paul Swanson)
Solution:   Call highlight_changed() after triggering InsertEnter.
            (closes #7751)
Files:      src/edit.c


*** ../vim-8.2.2417/src/edit.c  2021-01-17 22:03:58.513782591 +0100
--- src/edit.c  2021-01-28 11:07:25.565534886 +0100
***************
*** 196,201 ****
--- 196,205 ----
  #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
*** ../vim-8.2.2417/src/version.c       2021-01-27 21:37:04.731140094 +0100
--- src/version.c       2021-01-28 11:04:38.949942910 +0100
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     2418,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
254. You wake up daily with your keyboard printed on your forehead.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202101281008.10SA8Iqc013336%40masaka.moolenaar.net.

Raspunde prin e-mail lui