vim-patch:8.0.0513: fix getting name of cleared highlight group (#8103)

Problem:    Getting name of cleared highlight group is wrong. (Matt Wozniski)
Solution:   Only skip over cleared names for completion. (closes vim/vim#1592)
            Also fix that a cleared group causes duplicate completions.
c96272e30e
This commit is contained in:
KunMing Xie
2018-03-09 02:49:21 +08:00
committed by Justin M. Keyes
parent 1d5eec2c62
commit 5ec0a6d13f
5 changed files with 28 additions and 9 deletions

View File

@@ -16216,7 +16216,7 @@ static void f_synIDattr(typval_T *argvars, typval_T *rettv, FunPtr fptr)
break;
}
case 'n': { // name
p = get_highlight_name(NULL, id - 1);
p = get_highlight_name_ext(NULL, id - 1, false);
break;
}
case 'r': { // reverse