From 818d0be436a9a580561f793424b7780c3584c59c Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 7 Feb 2025 20:56:15 +0900 Subject: Fix change-header-label+change-header Fix #4227 --- test/test_layout.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test/test_layout.rb') diff --git a/test/test_layout.rb b/test/test_layout.rb index 97f8da6e..401f0f35 100644 --- a/test/test_layout.rb +++ b/test/test_layout.rb @@ -978,4 +978,17 @@ class TestLayout < TestInteractive setup end end + + def test_change_header_and_label_at_once + tmux.send_keys %(seq 10 | #{FZF} --border sharp --header-border sharp --header-label-pos 3 --bind 'focus:change-header(header)+change-header-label(label)'), :Enter + block = <<~BLOCK + │ ┌─label── + │ │ header + │ └──────── + │ 10/10 ─ + │ > + └────────── + BLOCK + tmux.until { assert_block(block, it) } + end end -- cgit v1.2.3