Mercurial > vim
comparison src/scriptfile.c @ 27209:fa09602eae48 v8.2.4133
patch 8.2.4133: output of ":scriptnames" goes into the message history
Commit: https://github.com/vim/vim/commit/840f16202e1ae2d574507ef52a7e8a98775f243c
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 18 13:34:05 2022 +0000
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 18 Jan 2022 14:45:04 +0100 |
parents | 2d0ea3f9ffe1 |
children | 42561e956a70 |
comparison
equal
deleted
inserted
replaced
27208:a478f3e9c2e0 | 27209:fa09602eae48 |
---|---|
1650 for (i = 1; i <= script_items.ga_len && !got_int; ++i) | 1650 for (i = 1; i <= script_items.ga_len && !got_int; ++i) |
1651 if (SCRIPT_ITEM(i)->sn_name != NULL) | 1651 if (SCRIPT_ITEM(i)->sn_name != NULL) |
1652 { | 1652 { |
1653 home_replace(NULL, SCRIPT_ITEM(i)->sn_name, | 1653 home_replace(NULL, SCRIPT_ITEM(i)->sn_name, |
1654 NameBuff, MAXPATHL, TRUE); | 1654 NameBuff, MAXPATHL, TRUE); |
1655 smsg("%3d: %s", i, NameBuff); | 1655 vim_snprintf((char *)IObuff, IOSIZE, "%3d: %s", i, NameBuff); |
1656 msg_putchar('\n'); | |
1657 msg_outtrans(IObuff); | |
1658 out_flush(); // output one line at a time | |
1659 ui_breakcheck(); | |
1656 } | 1660 } |
1657 } | 1661 } |
1658 | 1662 |
1659 # if defined(BACKSLASH_IN_FILENAME) || defined(PROTO) | 1663 # if defined(BACKSLASH_IN_FILENAME) || defined(PROTO) |
1660 /* | 1664 /* |