mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 07:16:09 +00:00
syntax: Adjust position and arguments of syn_init_cmdline_highlight
This way it works both after `nvim -u NORC` and after that and `colorscheme wombat256mod`. Removed the comment because I do not actually know why it works here with these arguments and not in previous position with previous arguments.
This commit is contained in:
@@ -6248,11 +6248,8 @@ init_highlight(int both, int reset)
|
|||||||
(void)source_runtime((char_u *)"syntax/syncolor.vim", DIP_ALL);
|
(void)source_runtime((char_u *)"syntax/syncolor.vim", DIP_ALL);
|
||||||
recursive--;
|
recursive--;
|
||||||
}
|
}
|
||||||
// Without syncolor.vim it is going to screw everything over by defining
|
|
||||||
// cleared highlight groups by creating links to non-existent groups. This
|
|
||||||
// effectively prevents ":highlight default" from working properly.
|
|
||||||
syn_init_cmdline_highlight(reset, true);
|
|
||||||
}
|
}
|
||||||
|
syn_init_cmdline_highlight(false, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user