0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.1.0495: :filter only supports some commands

Problem:    :filter only supports some commands.
Solution:   Add :filter support for more commands. (Marcin Szamotulski,
            closes #2856)
This commit is contained in:
Bram Moolenaar
2018-10-25 13:31:37 +02:00
parent babfcf54ae
commit f86db78fed
8 changed files with 76 additions and 4 deletions

View File

@@ -352,7 +352,7 @@ static reg_extmatch_T *next_match_extmatch = NULL;
/*
* A state stack is an array of integers or stateitem_T, stored in a
* garray_T. A state stack is invalid if it's itemsize entry is zero.
* garray_T. A state stack is invalid if its itemsize entry is zero.
*/
#define INVALID_STATE(ssp) ((ssp)->ga_itemsize == 0)
#define VALID_STATE(ssp) ((ssp)->ga_itemsize != 0)
@@ -9189,7 +9189,10 @@ highlight_list_one(int id)
struct hl_group *sgp;
int didh = FALSE;
sgp = &HL_TABLE()[id - 1]; /* index is ID minus one */
sgp = &HL_TABLE()[id - 1]; // index is ID minus one
if (message_filtered(sgp->sg_name))
return;
didh = highlight_list_arg(id, didh, LIST_ATTR,
sgp->sg_term, NULL, "term");