Clear border text of the floating pane when no label is given

This commit is contained in:
Junegunn Choi
2026-07-05 19:56:30 +09:00
parent 77e6394f50
commit eee92b1b2a
2 changed files with 14 additions and 6 deletions
+3
View File
@@ -17,6 +17,9 @@ class TestTmux < TestInteractive
def test_floating_pane
tmux.send_keys "seq 100 | #{fzf('--popup center,80% --margin 0')}", :Enter
tmux.until { |lines| assert_equal 100, lines.item_count }
# Border text is cleared when no label is given
format = IO.popen(['tmux', 'show-options', '-p', '-t', floating_pane, 'pane-border-format'], &:read)
assert_includes format, "''"
tmux.send_keys '99'
tmux.until { |lines| assert_equal 1, lines.match_count }
tmux.send_keys :Enter