blob: 99a574ec464751d820af3690a13bd05dd3dc2b97 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
local helpers = require('test.functional.helpers')(after_each)
local Screen = require('test.functional.ui.screen')
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()
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)
|