diff options
author | ZyX <kp-pav@yandex.ru> | 2017-10-29 21:42:37 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-10-29 21:42:37 +0300 |
commit | b91cb18c3688a4a936c14484af57de05ca113641 (patch) | |
tree | 278a70361d4864068452864d00105b56acdb983f /src | |
parent | 748f3ad5bbf9706dddddeea5df693221d6ae5e94 (diff) | |
download | rneovim-b91cb18c3688a4a936c14484af57de05ca113641.tar.gz rneovim-b91cb18c3688a4a936c14484af57de05ca113641.tar.bz2 rneovim-b91cb18c3688a4a936c14484af57de05ca113641.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/syntax.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c index b418df77a4..f8a62423ce 100644 --- a/src/nvim/syntax.c +++ b/src/nvim/syntax.c @@ -6248,11 +6248,8 @@ init_highlight(int both, int reset) (void)source_runtime((char_u *)"syntax/syncolor.vim", DIP_ALL); 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); } /* |