0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.4133: output of ":scriptnames" goes into the message history

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)
This commit is contained in:
Bram Moolenaar
2022-01-18 13:34:05 +00:00
parent 1836d61578
commit 840f16202e
3 changed files with 11 additions and 1 deletions

View File

@@ -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();
}
}