Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
16384:051dc2ab1745 | 16385:bb0f7cb7e2d5 |
---|---|
1 " Tests for startup. | 1 " Tests for startup. |
2 | 2 |
3 source shared.vim | 3 source shared.vim |
4 source screendump.vim | |
4 | 5 |
5 " Check that loading startup.vim works. | 6 " Check that loading startup.vim works. |
6 func Test_startup_script() | 7 func Test_startup_script() |
7 set compatible | 8 set compatible |
8 source $VIMRUNTIME/defaults.vim | 9 source $VIMRUNTIME/defaults.vim |
545 endif | 546 endif |
546 " Check that message is not truncated. | 547 " Check that message is not truncated. |
547 let out = system(GetVimCommand() . ' -es -X -V1 -c "echon ''hello''" -cq') | 548 let out = system(GetVimCommand() . ' -es -X -V1 -c "echon ''hello''" -cq') |
548 call assert_equal('hello', out) | 549 call assert_equal('hello', out) |
549 endfunc | 550 endfunc |
551 | |
552 func Test_start_with_tabs() | |
553 if !CanRunVimInTerminal() | |
554 return | |
555 endif | |
556 | |
557 let buf = RunVimInTerminal('-p a b c', {}) | |
558 call VerifyScreenDump(buf, 'Test_start_with_tabs', {}) | |
559 | |
560 " clean up | |
561 call StopVimInTerminal(buf) | |
562 endfunc |