Skip to content
Myr

Fix adaptive height with --header-border

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent a30181e · Browse files · 2 files+19 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+19 added−0 removed

  • tests:+16 added−0 removed
  • other:+3 added−0 removed

2 files+19 added−0 removed

modified:src/terminal.go+3 added
1091 unmodified lines
1092 }1093 if t.listBorderShape.Visible() {1094 extra += borderLines(t.listBorderShape)1095 }1096 if t.headerBorderShape.Visible() {1097 extra += borderLines(t.headerBorderShape)1098 }1099 if !t.noSeparatorLine() {1100 extra++1101 }1102 return extra
4651 unmodified lines
modified:test/test_go.rb+16 added
3700 unmodified lines
3701 ╰──────────────3702 BLOCK3703 tmux.until { assert_block(block, _1) }3704 end37053706 def test_style_full_adaptive_height3707 tmux.send_keys %(seq 1| #{FZF} --style=full --height=~100% --header-lines=1 --info=default), :Enter3708 block = <<~BLOCK3709 ╭────────3710 ╰────────3711 ╭────────3712 │ 13713 ╰────────3714 ╭────────3715 │ 0/03716 │ >3717 ╰────────3718 BLOCK3719 tmux.until { assert_block(block, _1) }3720 end3721end37223723module TestShell3724 def setup
537 unmodified lines