0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 8.0.1777: cannot cleanup before loading another colorscheme

Problem:    Cannot cleanup before loading another colorscheme.
Solution:   Add the ColorSchemePre autocommand event.
This commit is contained in:
Bram Moolenaar
2018-04-30 15:40:48 +02:00
parent 0e9d1ae321
commit 60a68362aa
6 changed files with 31 additions and 2 deletions

View File

@@ -1277,6 +1277,7 @@ enum auto_event
EVENT_CMDWINENTER, /* after entering the cmdline window */
EVENT_CMDWINLEAVE, /* before leaving the cmdline window */
EVENT_COLORSCHEME, /* after loading a colorscheme */
EVENT_COLORSCHEMEPRE, /* before loading a colorscheme */
EVENT_COMPLETEDONE, /* after finishing insert complete */
EVENT_CURSORHOLD, /* cursor in same position for a while */
EVENT_CURSORHOLDI, /* idem, in Insert mode */