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)
diff --git a/src/testdir/test_startup.vim b/src/testdir/test_startup.vim
index b7dd7ea..6509c0c 100644
--- 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 @@
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