diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-07-30 14:56:17 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-07-30 14:56:17 +0100 |
commit | de78632c41d870d5254e9ccd285f53674b955f4e (patch) | |
tree | 667790e33e6c7e291b51adb3bc1c7e86bc72e231 /src/evalfunc.c | |
parent | ddab3ce3457aadffb16ce0127f67a99966a065a8 (diff) | |
download | vim-git-de78632c41d870d5254e9ccd285f53674b955f4e.tar.gz |
patch 9.0.0111: "nocombine" is missing from synIDattr()v9.0.0111
Problem: "nocombine" is missing from synIDattr().
Solution: Add "nocombine". (Muni Tanjim, closes #10816)
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index 1505418fb..9b09caab7 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -10083,8 +10083,11 @@ f_synIDattr(typval_T *argvars UNUSED, typval_T *rettv) p = highlight_has_attr(id, HL_ITALIC, modec); break; - case 'n': // name - p = get_highlight_name_ext(NULL, id - 1, FALSE); + case 'n': + if (TOLOWER_ASC(what[1]) == 'o') // nocombine + p = highlight_has_attr(id, HL_NOCOMBINE, modec); + else // name + p = get_highlight_name_ext(NULL, id - 1, FALSE); break; case 'r': // reverse |