aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds2.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-02-10 21:04:41 +0800
committerGitHub <noreply@github.com>2022-02-10 21:04:41 +0800
commita73360a09a54c186f2df6e167a8be1f1a1d8c62a (patch)
treed3cdf0384ceeb812c505fc9e8e82856231a0b301 /src/nvim/ex_cmds2.c
parent3b4bf887104465fc7e821939ccbc44e9884a7d06 (diff)
parentc415e764d424251bb8139dcdd793b7b716aec563 (diff)
downloadrneovim-a73360a09a54c186f2df6e167a8be1f1a1d8c62a.tar.gz
rneovim-a73360a09a54c186f2df6e167a8be1f1a1d8c62a.tar.bz2
rneovim-a73360a09a54c186f2df6e167a8be1f1a1d8c62a.zip
Merge pull request #16868 from zeertzjq/vim-8.1.2221
vim-patch:8.1.2221,8.2.4336: filtering for :disp and :scriptnames
Diffstat (limited to 'src/nvim/ex_cmds2.c')
-rw-r--r--src/nvim/ex_cmds2.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c
index e5cec0e060..090422088a 100644
--- a/src/nvim/ex_cmds2.c
+++ b/src/nvim/ex_cmds2.c
@@ -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();
+ }
}
}
}