mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.4336: using :filter for :scriptnames does not work
Problem: Using :filter for :scriptnames does not work. (Ben Jackson) Solution: Call message_filtered(). (closes #9720)
This commit is contained in:
@@ -1658,6 +1658,8 @@ ex_scriptnames(exarg_T *eap)
|
|||||||
i,
|
i,
|
||||||
si->sn_state == SN_STATE_NOT_LOADED ? " A" : "",
|
si->sn_state == SN_STATE_NOT_LOADED ? " A" : "",
|
||||||
NameBuff);
|
NameBuff);
|
||||||
|
if (!message_filtered(IObuff))
|
||||||
|
{
|
||||||
msg_putchar('\n');
|
msg_putchar('\n');
|
||||||
msg_outtrans(IObuff);
|
msg_outtrans(IObuff);
|
||||||
out_flush(); // output one line at a time
|
out_flush(); // output one line at a time
|
||||||
@@ -1665,6 +1667,7 @@ ex_scriptnames(exarg_T *eap)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# if defined(BACKSLASH_IN_FILENAME) || defined(PROTO)
|
# if defined(BACKSLASH_IN_FILENAME) || defined(PROTO)
|
||||||
/*
|
/*
|
||||||
|
@@ -190,4 +190,10 @@ func Test_filter_display()
|
|||||||
bwipe!
|
bwipe!
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
func Test_filter_scriptnames()
|
||||||
|
let lines = split(execute('filter /test_filter_cmd/ scriptnames'), "\n")
|
||||||
|
call assert_equal(1, len(lines))
|
||||||
|
call assert_match('filter_cmd', lines[0])
|
||||||
|
endfunc
|
||||||
|
|
||||||
" vim: shiftwidth=2 sts=2 expandtab
|
" vim: shiftwidth=2 sts=2 expandtab
|
||||||
|
@@ -746,6 +746,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
4336,
|
||||||
/**/
|
/**/
|
||||||
4335,
|
4335,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user