m/fzf
1
0
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:
Junegunn Choi
2025-07-02 21:28:11 +09:00
parent ce95adc66c
commit d34675d3c9
2 changed files with 48 additions and 33 deletions

View File

@@ -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