mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 10:45:16 -07:00
test: add test for setting &columns from modeline with tabpages
This commit is contained in:
parent
83472b3808
commit
d7855caa18
@ -11,6 +11,7 @@
|
||||
"after_each",
|
||||
"setup",
|
||||
"teardown",
|
||||
"finally",
|
||||
"lfs"
|
||||
]
|
||||
},
|
||||
|
@ -465,6 +465,19 @@ describe('startup', function()
|
||||
clear{args={'--cmd', 'set packpath^=test/functional/fixtures', '--cmd', [[ lua _G.test_loadorder = {} vim.cmd "runtime! filen.lua" ]]}, env={XDG_CONFIG_HOME='test/functional/fixtures/'}}
|
||||
eq({'ordinary', 'FANCY', 'FANCY after', 'ordinary after'}, exec_lua [[ return _G.test_loadorder ]])
|
||||
end)
|
||||
|
||||
it('window widths are correct when modelines set &columns with tabpages', function()
|
||||
write_file('tab1.noft', 'vim: columns=81')
|
||||
write_file('tab2.noft', 'vim: columns=81')
|
||||
finally(function()
|
||||
os.remove('tab1.noft')
|
||||
os.remove('tab2.noft')
|
||||
end)
|
||||
clear({args = {'-p', 'tab1.noft', 'tab2.noft'}})
|
||||
eq(81, meths.win_get_width(0))
|
||||
command('tabnext')
|
||||
eq(81, meths.win_get_width(0))
|
||||
end)
|
||||
end)
|
||||
|
||||
describe('sysinit', function()
|
||||
|
Loading…
Reference in New Issue
Block a user