diff options
author | Lewis Russell <lewis6991@gmail.com> | 2022-03-18 04:47:08 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-18 12:47:08 +0800 |
commit | 00effff56944d5b59440dcdb5e3496d49a76d3e2 (patch) | |
tree | 09b28a8a44a8e98a58f4ced7a5e5a249c57ac072 /src/nvim/option.c | |
parent | c1b98cfa5e94c28a792af67cf5bc53ef2c380681 (diff) | |
download | rneovim-00effff56944d5b59440dcdb5e3496d49a76d3e2.tar.gz rneovim-00effff56944d5b59440dcdb5e3496d49a76d3e2.tar.bz2 rneovim-00effff56944d5b59440dcdb5e3496d49a76d3e2.zip |
vim-patch:8.1.1693: syntax coloring and highlighting is in one big file (#17721)
Problem: Syntax coloring and highlighting is in one big file.
Solution: Move the highlighting to a separate file. (Yegappan Lakshmanan,
closes vim/vim#4674)
https://github.com/vim/vim/commit/f9cc9f209ede9f15959e4c2351e970477c139614
Name the new file highlight_group.c instead.
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index ef1c2d499c..ffd009be89 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -47,6 +47,7 @@ #include "nvim/getchar.h" #include "nvim/hardcopy.h" #include "nvim/highlight.h" +#include "nvim/highlight_group.h" #include "nvim/indent_c.h" #include "nvim/keymap.h" #include "nvim/macros.h" @@ -3853,7 +3854,7 @@ static bool parse_winhl_opt(win_T *wp) size_t nlen = (size_t)(colon-p); char *hi = colon+1; char *commap = xstrchrnul(hi, ','); - int len = (int)(commap-hi); + size_t len = (size_t)(commap-hi); int hl_id = len ? syn_check_group(hi, len) : -1; if (strncmp("Normal", p, nlen) == 0) { |