mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +00:00
vim-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 vim/vim#9551)
840f16202e
This commit is contained in:
@@ -2323,9 +2323,11 @@ void ex_scriptnames(exarg_T *eap)
|
||||
|
||||
for (int i = 1; i <= script_items.ga_len && !got_int; i++) {
|
||||
if (SCRIPT_ITEM(i).sn_name != NULL) {
|
||||
home_replace(NULL, SCRIPT_ITEM(i).sn_name,
|
||||
NameBuff, MAXPATHL, true);
|
||||
smsg("%3d: %s", i, NameBuff);
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user