mirror of
https://github.com/neovim/neovim.git
synced 2026-01-04 10:26:42 +10:00
refactor(tests): use global defaults instead of set_default_attr_ids (2)
This commit is contained in:
@@ -10,9 +10,6 @@ describe(':move', function()
|
||||
-- oldtest: Test_move_undo()
|
||||
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
|
||||
})
|
||||
screen:attach()
|
||||
|
||||
fn.setline(1, { 'First', 'Second', 'Third', 'Fourth' })
|
||||
@@ -22,7 +19,7 @@ describe(':move', function()
|
||||
^First |
|
||||
Third |
|
||||
Fourth |
|
||||
{0:~ }|*5
|
||||
{1:~ }|*5
|
||||
:move +1 |
|
||||
]])
|
||||
|
||||
@@ -34,7 +31,7 @@ describe(':move', function()
|
||||
Second |
|
||||
Third |
|
||||
Fourth |
|
||||
{0:~ }|*5
|
||||
{1:~ }|*5
|
||||
|
|
||||
]])
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user