Problem: Using :filter for :scriptnames does not work. (Ben Jackson)
Solution: Call message_filtered(). (closes #9720)
i,
si->sn_state == SN_STATE_NOT_LOADED ? " A" : "",
NameBuff);
- msg_putchar('\n');
- msg_outtrans(IObuff);
- out_flush(); // output one line at a time
- ui_breakcheck();
+ if (!message_filtered(IObuff))
+ {
+ msg_putchar('\n');
+ msg_outtrans(IObuff);
+ out_flush(); // output one line at a time
+ ui_breakcheck();
+ }
}
}
}
bwipe!
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
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 4336,
/**/
4335,
/**/