aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-07-01 14:02:48 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-07-15 23:07:28 -0400
commit263d62f628ee611c883b216bd9098484293d46a0 (patch)
tree76b0f65213dcc9901a4250035f682640c35f635f /src/nvim/option.c
parent990f99658bb060ac2ac4e1cff2966eab1e96f9d9 (diff)
downloadrneovim-263d62f628ee611c883b216bd9098484293d46a0.tar.gz
rneovim-263d62f628ee611c883b216bd9098484293d46a0.tar.bz2
rneovim-263d62f628ee611c883b216bd9098484293d46a0.zip
vim-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 vim/vim#2856) https://github.com/vim/vim/commit/f86db78fed78541cefdb706e4779ce5ae9ca7820
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r--src/nvim/option.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index d6dbb14653..8483c02bbe 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -5047,6 +5047,11 @@ showoptions(
// collect the items in items[]
item_count = 0;
for (p = &options[0]; p->fullname != NULL; p++) {
+ // apply :filter /pat/
+ if (message_filtered((char_u *)p->fullname)) {
+ continue;
+ }
+
varp = NULL;
if (opt_flags != 0) {
if (p->indir != PV_NONE) {