aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/move_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/legacy/move_spec.lua')
-rw-r--r--test/functional/legacy/move_spec.lua18
1 files changed, 5 insertions, 13 deletions
diff --git a/test/functional/legacy/move_spec.lua b/test/functional/legacy/move_spec.lua
index 855996da8f..1500d48ad9 100644
--- a/test/functional/legacy/move_spec.lua
+++ b/test/functional/legacy/move_spec.lua
@@ -2,7 +2,7 @@ local helpers = require('test.functional.helpers')(after_each)
local Screen = require('test.functional.ui.screen')
local clear = helpers.clear
local feed = helpers.feed
-local funcs = helpers.funcs
+local fn = helpers.fn
before_each(clear)
@@ -11,22 +11,18 @@ describe(':move', function()
it('redraws correctly when undone', function()
local screen = Screen.new(60, 10)
screen:set_default_attr_ids({
- [0] = {bold = true, foreground = Screen.colors.Blue}, -- NonText
+ [0] = { bold = true, foreground = Screen.colors.Blue }, -- NonText
})
screen:attach()
- funcs.setline(1, {'First', 'Second', 'Third', 'Fourth'})
+ fn.setline(1, { 'First', 'Second', 'Third', 'Fourth' })
feed('gg:move +1<CR>')
screen:expect([[
Second |
^First |
Third |
Fourth |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
:move +1 |
]])
@@ -38,11 +34,7 @@ describe(':move', function()
Second |
Third |
Fourth |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ {0:~ }|*5
|
]])
end)