summaryrefslogtreecommitdiff
path: root/src/scriptfile.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-18 13:34:05 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-18 13:34:05 +0000
commit840f16202e1ae2d574507ef52a7e8a98775f243c (patch)
tree2fcbc1d15758be82fd4d7e316584be77f53a8d35 /src/scriptfile.c
parent1836d6157828baddd94e1f2c82488031570e444d (diff)
downloadvim-git-840f16202e1ae2d574507ef52a7e8a98775f243c.tar.gz
patch 8.2.4133: output of ":scriptnames" goes into the message historyv8.2.4133
Problem: output of ":scriptnames" goes into the message history, while this des not happen for other commands, such as ":ls". Solution: Use msg_outtrans() instead of smsg(). (closes #9551)
Diffstat (limited to 'src/scriptfile.c')
-rw-r--r--src/scriptfile.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/scriptfile.c b/src/scriptfile.c
index 350813934..159c9fc67 100644
--- a/src/scriptfile.c
+++ b/src/scriptfile.c
@@ -1652,7 +1652,11 @@ ex_scriptnames(exarg_T *eap)
{
home_replace(NULL, SCRIPT_ITEM(i)->sn_name,
NameBuff, MAXPATHL, TRUE);
- smsg("%3d: %s", i, NameBuff);
+ vim_snprintf((char *)IObuff, IOSIZE, "%3d: %s", i, NameBuff);
+ msg_putchar('\n');
+ msg_outtrans(IObuff);
+ out_flush(); // output one line at a time
+ ui_breakcheck();
}
}