File tree 2 files changed +15
-0
lines changed
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -2647,6 +2647,9 @@ func (t *Terminal) headerIndent(borderShape tui.BorderShape) int {
2647
2647
}
2648
2648
if borderShape .HasLeft () {
2649
2649
indentSize -= 1 + t .borderWidth
2650
+ if indentSize < 0 {
2651
+ indentSize = 0
2652
+ }
2650
2653
}
2651
2654
return indentSize
2652
2655
}
Original file line number Diff line number Diff line change @@ -991,4 +991,16 @@ def test_change_header_and_label_at_once
991
991
BLOCK
992
992
tmux . until { assert_block ( block , it ) }
993
993
end
994
+
995
+ def test_header_border_no_pointer_and_marker
996
+ tmux . send_keys %(seq 10 | #{ FZF } --header-lines 1 --header-border sharp --no-list-border --pointer '' --marker '') , :Enter
997
+ block = <<~BLOCK
998
+ ┌──────
999
+ │ 1
1000
+ └──────
1001
+ 9/9 ─
1002
+ >
1003
+ BLOCK
1004
+ tmux . until { assert_block ( block , it ) }
1005
+ end
994
1006
end
You can’t perform that action at this time.
0 commit comments