mirror of
https://github.com/neovim/neovim.git
synced 2026-04-24 16:25:40 +00:00
test(terminal/cursor_spec): fix flaky test (#37681)
(cherry picked from commit 963162b338)
This commit is contained in:
committed by
github-actions[bot]
parent
b90b0c8d17
commit
ba7456b91a
@@ -551,7 +551,10 @@ describe('buffer cursor position is correct in terminal without number column',
|
||||
]])
|
||||
end
|
||||
|
||||
before_each(clear)
|
||||
before_each(function()
|
||||
clear()
|
||||
command('autocmd! nvim.terminal')
|
||||
end)
|
||||
|
||||
describe('in a line with no multibyte chars or trailing spaces,', function()
|
||||
before_each(function()
|
||||
@@ -864,7 +867,10 @@ describe('buffer cursor position is correct in terminal with number column', fun
|
||||
|
||||
before_each(function()
|
||||
clear()
|
||||
command('au TermOpen * set number')
|
||||
command('autocmd! nvim.terminal')
|
||||
-- 'number' should be set before the terminal process starts, otherwise the resize
|
||||
-- from setting 'number' may cause a redraw that removes the "Entering Ex mode".
|
||||
command('set number')
|
||||
end)
|
||||
|
||||
describe('in a line with no multibyte chars or trailing spaces,', function()
|
||||
|
||||
Reference in New Issue
Block a user