diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-07-07 21:35:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-07 21:35:55 +0200 |
commit | 524fe6205d01d8ced45bc4b00ed397add01a41bf (patch) | |
tree | 8fd4cb84d1149da6f636b5bd5bbb114df86b982b /src/nvim/option.c | |
parent | 28a86608a84672b3b64981c3b47b80b051cb5177 (diff) | |
parent | ef3e32d57ee0ebe3f425998216d8bf61ffdc28bb (diff) | |
download | rneovim-524fe6205d01d8ced45bc4b00ed397add01a41bf.tar.gz rneovim-524fe6205d01d8ced45bc4b00ed397add01a41bf.tar.bz2 rneovim-524fe6205d01d8ced45bc4b00ed397add01a41bf.zip |
Merge pull request #10090 from bfredl/floatpopup
api/window: add style="minimal" flag to disable unwanted UI features for simple floats
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 62f736ea31..9cdcf4cc34 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -3762,7 +3762,8 @@ static bool parse_winhl_opt(win_T *wp) size_t nlen = (size_t)(colon-p); char *hi = colon+1; char *commap = xstrchrnul(hi, ','); - int hl_id = syn_check_group((char_u *)hi, (int)(commap-hi)); + int len = (int)(commap-hi); + int hl_id = len ? syn_check_group((char_u *)hi, len) : -1; if (strncmp("Normal", p, nlen) == 0) { w_hl_id_normal = hl_id; |