diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-03-26 13:50:09 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-03-26 13:50:09 +0200 |
commit | c96272e30e2b81e5e0c8418f09d9db4e2fcd5d73 (patch) | |
tree | f8434ca5d83eabd03868e5e2ddfff45c976067f1 /src/ex_cmds.c | |
parent | 1572e30607e9a3bee9750242bf37168f7d2b6e66 (diff) | |
download | vim-git-c96272e30e2b81e5e0c8418f09d9db4e2fcd5d73.tar.gz |
patch 8.0.0513: getting name of cleared highlight group is wrongv8.0.0513
Problem: Getting name of cleared highlight group is wrong. (Matt Wozniski)
Solution: Only skip over cleared names for completion. (closes #1592)
Also fix that a cleared group causes duplicate completions.
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r-- | src/ex_cmds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 0c4dffbc6..6940e5527 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -7962,7 +7962,7 @@ sign_list_defined(sign_T *sp) if (sp->sn_line_hl > 0) { MSG_PUTS(" linehl="); - p = get_highlight_name(NULL, sp->sn_line_hl - 1); + p = get_highlight_name_ext(NULL, sp->sn_line_hl - 1, FALSE); if (p == NULL) MSG_PUTS("NONE"); else @@ -7971,7 +7971,7 @@ sign_list_defined(sign_T *sp) if (sp->sn_text_hl > 0) { MSG_PUTS(" texthl="); - p = get_highlight_name(NULL, sp->sn_text_hl - 1); + p = get_highlight_name_ext(NULL, sp->sn_text_hl - 1, FALSE); if (p == NULL) MSG_PUTS("NONE"); else |