Mercurial > vim
diff src/testdir/test_startup.vim @ 16385:bb0f7cb7e2d5 v8.1.1197
patch 8.1.1197: when starting with multiple tabs file messages is confusing
commit https://github.com/vim/vim/commit/c75e81262347e47a69faabd72caf89fec3f06e8f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Apr 21 15:55:10 2019 +0200
patch 8.1.1197: when starting with multiple tabs file messages is confusing
Problem: When starting with multiple tabs file messages is confusing.
Solution: Set 'shortmess' when loading the other tabs. (Christian Brabandt)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 21 Apr 2019 16:00:04 +0200 |
parents | ca0a0b64809c |
children | 5726af4931e3 |
line wrap: on
line diff
--- a/src/testdir/test_startup.vim +++ b/src/testdir/test_startup.vim @@ -1,6 +1,7 @@ " Tests for startup. source shared.vim +source screendump.vim " Check that loading startup.vim works. func Test_startup_script() @@ -547,3 +548,15 @@ func Test_issue_3969() let out = system(GetVimCommand() . ' -es -X -V1 -c "echon ''hello''" -cq') call assert_equal('hello', out) endfunc + +func Test_start_with_tabs() + if !CanRunVimInTerminal() + return + endif + + let buf = RunVimInTerminal('-p a b c', {}) + call VerifyScreenDump(buf, 'Test_start_with_tabs', {}) + + " clean up + call StopVimInTerminal(buf) +endfunc