From d34675d3c9c0f11e42d29c705e261eb4df794f25 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 2 Jul 2025 21:28:11 +0900 Subject: Fix panic caused by incorrect update ordering Fix #4442 Make sure to prepare windows before rendering elements. Thanks to @nugged for the report. --- test/test_core.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') 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 -- cgit v1.2.3