fix(highlight): add missing g: prefix for colors_name

Fix #22951.
This was fixed in Vim in patch 8.2.0613.

(cherry picked from commit a28aa614f5)
This commit is contained in:
zeertzjq
2023-04-08 16:23:54 +08:00
committed by github-actions[bot]
parent 92ffc44ce7
commit d9ceb213d9
2 changed files with 20 additions and 1 deletions

View File

@@ -1003,7 +1003,7 @@ void do_highlight(const char *line, const bool forceit, const bool init)
// ":highlight clear [group]" command.
line = linep;
if (ends_excmd((uint8_t)(*line))) {
do_unlet(S_LEN("colors_name"), true);
do_unlet(S_LEN("g:colors_name"), true);
restore_cterm_colors();
// Clear all default highlight groups and load the defaults.