mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-16 15:23:48 -05:00
Fix panic caused by incorrect update ordering
Fix #4442 Make sure to prepare windows before rendering elements. Thanks to @nugged for the report.
This commit is contained in:
@@ -1981,4 +1981,11 @@ class TestCore < TestInteractive
|
||||
refute lines.any_include?('[1]')
|
||||
end
|
||||
end
|
||||
|
||||
def test_render_order
|
||||
tmux.send_keys %(seq 100 | #{FZF} --bind='focus:preview(echo boom)+change-footer(bam)'), :Enter
|
||||
tmux.until { assert_equal 100, it.match_count }
|
||||
tmux.until { assert it.any_include?('boom') }
|
||||
tmux.until { assert it.any_include?('bam') }
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user