diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2025-02-07 20:56:15 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2025-02-07 20:57:09 +0900 |
| commit | 818d0be436a9a580561f793424b7780c3584c59c (patch) | |
| tree | 94894c69e4e57d5f8f2eb46fcfa3256b53e87c99 /test/test_layout.rb | |
| parent | fcd2baa9457a6486866a6a52248c43f31e05831a (diff) | |
| download | fzf-818d0be436a9a580561f793424b7780c3584c59c.tar.gz | |
Fix change-header-label+change-header
Fix #4227
Diffstat (limited to 'test/test_layout.rb')
| -rw-r--r-- | test/test_layout.rb | 13 |
1 files changed, 13 insertions, 0 deletions
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 |
