blob: 4ac3655f08776967b469af3a95d7cc451b9bd2eb (
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
42
43
44
45
|
local helpers = require('test.functional.helpers')(after_each)
local Screen = require('test.functional.ui.screen')
local clear, execute = helpers.clear, helpers.execute
describe("'fillchars'", function()
local screen
before_each(function()
clear()
screen = Screen.new(25, 5)
screen:attach()
end)
after_each(function()
screen:detach()
end)
describe('"eob" flag', function()
it('renders empty lines at the end of the buffer with eob', function()
screen:expect([[
^ |
~ |
~ |
~ |
|
]])
execute('set fillchars+=eob:\\ ')
screen:expect([[
^ |
|
|
|
:set fillchars+=eob:\ |
]])
execute('set fillchars+=eob:ñ')
screen:expect([[
^ |
ñ |
ñ |
ñ |
:set fillchars+=eob:ñ |
]])
end)
end)
end)
|