• R/O
  • SSH

vim: コミット

Mirror of the Vim source from https://github.com/vim/vim


コミットメタ情報

リビジョンfa09602eae48c7ada44a5084f4de2166859fce27 (tree)
日時2022-01-18 22:45:04
作者Bram Moolenaar <Bram@vim....>
コミッターBram Moolenaar

ログメッセージ

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)

変更サマリ

差分

diff -r a478f3e9c2e0 -r fa09602eae48 src/scriptfile.c
--- a/src/scriptfile.c Tue Jan 18 14:15:07 2022 +0100
+++ b/src/scriptfile.c Tue Jan 18 14:45:04 2022 +0100
@@ -1652,7 +1652,11 @@
16521652 {
16531653 home_replace(NULL, SCRIPT_ITEM(i)->sn_name,
16541654 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();
16561660 }
16571661 }
16581662
diff -r a478f3e9c2e0 -r fa09602eae48 src/testdir/test_scriptnames.vim
--- a/src/testdir/test_scriptnames.vim Tue Jan 18 14:15:07 2022 +0100
+++ b/src/testdir/test_scriptnames.vim Tue Jan 18 14:45:04 2022 +0100
@@ -23,6 +23,10 @@
2323
2424 bwipe
2525 call delete('Xscripting')
26+
27+ let msgs = execute('messages')
28+ scriptnames
29+ call assert_equal(msgs, execute('messages'))
2630 endfunc
2731
2832 " vim: shiftwidth=2 sts=2 expandtab
diff -r a478f3e9c2e0 -r fa09602eae48 src/version.c
--- a/src/version.c Tue Jan 18 14:15:07 2022 +0100
+++ b/src/version.c Tue Jan 18 14:45:04 2022 +0100
@@ -751,6 +751,8 @@
751751 static int included_patches[] =
752752 { /* Add new patch number below this line */
753753 /**/
754+ 4133,
755+/**/
754756 4132,
755757 /**/
756758 4131,
旧リポジトリブラウザで表示