mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
test(terminal/buffer_spec): avoid other keys in double clicks (#28245)
Having unrelated keys between double clicks may make the test flaky as 'mousetime' is more easily reached.
This commit is contained in:
parent
2528093bbe
commit
56123fb271
@ -482,18 +482,16 @@ describe('terminal input', function()
|
||||
'colorscheme vim',
|
||||
'--cmd',
|
||||
'set notermguicolors',
|
||||
'--cmd',
|
||||
'startinsert',
|
||||
'-c',
|
||||
'while 1 | redraw | call setline(1, keytrans(getcharstr())) | endwhile',
|
||||
})
|
||||
screen:expect {
|
||||
grid = [[
|
||||
screen:expect([[
|
||||
{1: } |
|
||||
{4:~ }|*3
|
||||
{5:[No Name] 0,1 All}|
|
||||
{3:-- INSERT --} |
|
||||
{5:[No Name] 0,0-1 All}|
|
||||
|
|
||||
{3:-- TERMINAL --} |
|
||||
]],
|
||||
}
|
||||
]])
|
||||
for _, key in ipairs({
|
||||
'<M-Tab>',
|
||||
'<M-CR>',
|
||||
@ -543,9 +541,9 @@ describe('terminal input', function()
|
||||
'<ScrollWheelLeft>',
|
||||
'<ScrollWheelRight>',
|
||||
}) do
|
||||
feed('<CR><C-V>' .. key)
|
||||
feed(key)
|
||||
retry(nil, nil, function()
|
||||
eq(key, api.nvim_get_current_line())
|
||||
eq(key, vim.trim(api.nvim_get_current_line()))
|
||||
end)
|
||||
end
|
||||
end)
|
||||
|
Loading…
Reference in New Issue
Block a user