mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
vim-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 vim/vim#9720)
769f5895eb
Cherry-pick a modeline from Vim patch 8.2.1432.
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "nvim/ascii.h"
|
||||
#include "nvim/globals.h"
|
||||
#include "nvim/vim.h"
|
||||
#ifdef HAVE_LOCALE_H
|
||||
# include <locale.h>
|
||||
@@ -2190,9 +2191,11 @@ void ex_scriptnames(exarg_T *eap)
|
||||
if (SCRIPT_ITEM(i).sn_name != NULL) {
|
||||
home_replace(NULL, SCRIPT_ITEM(i).sn_name, NameBuff, MAXPATHL, true);
|
||||
vim_snprintf((char *)IObuff, IOSIZE, "%3d: %s", i, NameBuff);
|
||||
msg_putchar('\n');
|
||||
msg_outtrans(IObuff);
|
||||
line_breakcheck();
|
||||
if (!message_filtered(IObuff)) {
|
||||
msg_putchar('\n');
|
||||
msg_outtrans(IObuff);
|
||||
line_breakcheck();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user