aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-09-08 15:44:14 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-09-08 23:16:54 -0400
commit8dde9b58e56345c8c04620d513b55d3b518ea98e (patch)
tree3eee5ce39d8465481079844f1d0a97f64e375e3f /test
parent74c362cec029ba39a8eb0bbd629148e4b6b54968 (diff)
downloadrneovim-8dde9b58e56345c8c04620d513b55d3b518ea98e.tar.gz
rneovim-8dde9b58e56345c8c04620d513b55d3b518ea98e.tar.bz2
rneovim-8dde9b58e56345c8c04620d513b55d3b518ea98e.zip
vim-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) https://github.com/vim/vim/commit/c75e81262347e47a69faabd72caf89fec3f06e8f
Diffstat (limited to 'test')
-rw-r--r--test/functional/core/startup_spec.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/functional/core/startup_spec.lua b/test/functional/core/startup_spec.lua
index 3b32c42ec0..041d9a278d 100644
--- a/test/functional/core/startup_spec.lua
+++ b/test/functional/core/startup_spec.lua
@@ -251,6 +251,23 @@ describe('startup', function()
|
]])
end)
+
+ it('sets \'shortmess\' when loading other tabs', function()
+ clear({args={'-p', 'a', 'b', 'c'}})
+ local screen = Screen.new(25, 4)
+ screen:attach()
+ screen:expect({grid=[[
+ {1: a }{2: b c }{3: }{2:X}|
+ ^ |
+ {4:~ }|
+ |
+ ]], attr_ids={
+ [1] = {bold = true},
+ [2] = {background = Screen.colors.LightGrey, underline = true},
+ [3] = {reverse = true},
+ [4] = {bold = true, foreground = Screen.colors.Blue1},
+ }})
+ end)
end)
describe('sysinit', function()