mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00

Because we default to laststatus=2 (statusline is always visible), the :edit message is not useful. ref #6289
44 lines
1.1 KiB
Lua
44 lines
1.1 KiB
Lua
local helpers = require('test.functional.helpers')(after_each)
|
|
local Screen = require('test.functional.ui.screen')
|
|
local command = helpers.command
|
|
local clear, feed_command = helpers.clear, helpers.feed_command
|
|
|
|
if helpers.pending_win32(pending) then return end
|
|
|
|
describe("'shortmess'", function()
|
|
local screen
|
|
|
|
before_each(function()
|
|
clear()
|
|
screen = Screen.new(25, 5)
|
|
screen:attach()
|
|
end)
|
|
|
|
after_each(function()
|
|
screen:detach()
|
|
end)
|
|
|
|
describe('"F" flag', function()
|
|
it('hides messages about the files read', function()
|
|
command("set shortmess-=F")
|
|
feed_command('e test')
|
|
screen:expect([[
|
|
^ |
|
|
~ |
|
|
~ |
|
|
~ |
|
|
"test" is a directory |
|
|
]])
|
|
feed_command('set shortmess=F')
|
|
feed_command('e test')
|
|
screen:expect([[
|
|
^ |
|
|
~ |
|
|
~ |
|
|
~ |
|
|
:e test |
|
|
]])
|
|
end)
|
|
end)
|
|
end)
|