diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2025-07-02 21:28:11 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2025-07-02 21:28:11 +0900 |
| commit | d34675d3c9c0f11e42d29c705e261eb4df794f25 (patch) | |
| tree | 68630d44e04b331c1de9b2e466e2d4221ab95761 /test | |
| parent | ce95adc66c27d97b8f1bb56f139b7efd3f53e5c4 (diff) | |
| download | fzf-d34675d3c9c0f11e42d29c705e261eb4df794f25.tar.gz | |
Fix panic caused by incorrect update ordering
Fix #4442
Make sure to prepare windows before rendering elements.
Thanks to @nugged for the report.
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_core.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_core.rb b/test/test_core.rb index b7eba741..b19b1dc5 100644 --- a/test/test_core.rb +++ b/test/test_core.rb @@ -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 |
