mirror of
https://github.com/neovim/neovim.git
synced 2026-11-03 12:49:53 -06:00
test(screen): fix minimal timeout too small for "intermediate" (#37933)
After #27620 flags.timeout is no longer used as the minimal timeout for "intermediate", but the default minimal timeout shouldn't be too small.
This commit is contained in:
1 parent
a520d9c4ea
commit
d0c699ec7b
1 file changed
+2
@@ -809,6 +809,8 @@ function Screen:_wait(check, flags)
|
||||
-- must not change, so always wait this full time.
|
||||
if flags.unchanged then
|
||||
minimal_timeout = flags.timeout or default_timeout_factor * 20
|
||||
elseif flags.intermediate then
|
||||
minimal_timeout = default_timeout_factor * 20
|
||||
end
|
||||
|
||||
assert(timeout >= minimal_timeout)
|
||||
|
||||
Reference in new issue
Block a user