Mercurial > vim
comparison src/option.c @ 14968:c5ec5ddbe814 v8.1.0495
patch 8.1.0495: :filter only supports some commands
commit https://github.com/vim/vim/commit/f86db78fed78541cefdb706e4779ce5ae9ca7820
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Oct 25 13:31:37 2018 +0200
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 25 Oct 2018 13:45:05 +0200 |
parents | dc54785f9a1d |
children | 0058cdd5b752 |
comparison
equal
deleted
inserted
replaced
14967:5acaac1226fd | 14968:c5ec5ddbe814 |
---|---|
10081 * collect the items in items[] | 10081 * collect the items in items[] |
10082 */ | 10082 */ |
10083 item_count = 0; | 10083 item_count = 0; |
10084 for (p = &options[0]; p->fullname != NULL; p++) | 10084 for (p = &options[0]; p->fullname != NULL; p++) |
10085 { | 10085 { |
10086 // apply :filter /pat/ | |
10087 if (message_filtered((char_u *) p->fullname)) | |
10088 continue; | |
10089 | |
10086 varp = NULL; | 10090 varp = NULL; |
10087 isterm = istermoption(p); | 10091 isterm = istermoption(p); |
10088 if (opt_flags != 0) | 10092 if (opt_flags != 0) |
10089 { | 10093 { |
10090 if (p->indir != PV_NONE && !isterm) | 10094 if (p->indir != PV_NONE && !isterm) |