mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.4135: Vim9: ":scriptnames" shows unloaded imported autoload script
Problem: Vim9: ":scriptnames" shows unloaded imported autoload script. Solution: Mark the unloaded script with "A". (closes #9552)
This commit is contained in:
@@ -1648,16 +1648,22 @@ ex_scriptnames(exarg_T *eap)
|
||||
}
|
||||
|
||||
for (i = 1; i <= script_items.ga_len && !got_int; ++i)
|
||||
if (SCRIPT_ITEM(i)->sn_name != NULL)
|
||||
{
|
||||
scriptitem_T *si = SCRIPT_ITEM(i);
|
||||
|
||||
if (si->sn_name != NULL)
|
||||
{
|
||||
home_replace(NULL, SCRIPT_ITEM(i)->sn_name,
|
||||
NameBuff, MAXPATHL, TRUE);
|
||||
vim_snprintf((char *)IObuff, IOSIZE, "%3d: %s", i, NameBuff);
|
||||
home_replace(NULL, si->sn_name, NameBuff, MAXPATHL, TRUE);
|
||||
vim_snprintf((char *)IObuff, IOSIZE, "%3d%s: %s",
|
||||
i,
|
||||
si->sn_state == SN_STATE_NOT_LOADED ? " A" : "",
|
||||
NameBuff);
|
||||
msg_putchar('\n');
|
||||
msg_outtrans(IObuff);
|
||||
out_flush(); // output one line at a time
|
||||
ui_breakcheck();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# if defined(BACKSLASH_IN_FILENAME) || defined(PROTO)
|
||||
|
Reference in New Issue
Block a user