diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-01-27 15:53:00 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-01-27 15:55:06 +0800 |
| commit | a9f112ce3a076e9405a3c18fa608747d56c64726 (patch) | |
| tree | 8908c6bda24594a43460ddbfe6b869291500269f /src/nvim/testdir | |
| parent | 9c4e617064a100856bb06e1dec5be27cf22f78f4 (diff) | |
| download | rneovim-a9f112ce3a076e9405a3c18fa608747d56c64726.tar.gz rneovim-a9f112ce3a076e9405a3c18fa608747d56c64726.tar.bz2 rneovim-a9f112ce3a076e9405a3c18fa608747d56c64726.zip | |
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)
https://github.com/vim/vim/commit/840f16202e1ae2d574507ef52a7e8a98775f243c
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_scriptnames.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_scriptnames.vim b/src/nvim/testdir/test_scriptnames.vim index fc6c910bfa..44ec146666 100644 --- a/src/nvim/testdir/test_scriptnames.vim +++ b/src/nvim/testdir/test_scriptnames.vim @@ -23,4 +23,10 @@ func Test_scriptnames() bwipe call delete('Xscripting') + + let msgs = execute('messages') + scriptnames + call assert_equal(msgs, execute('messages')) endfunc + +" vim: shiftwidth=2 sts=2 expandtab |