Skip to content
Myr

Fix header not shown when the lines go beyond the screen limit

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 bbaa3ab · Browse files · 2 files+5 added−2 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+5 added−2 removed

  • tests:+4 added−1 removed
  • other:+1 added−1 removed

2 files+5 added−2 removed

modified:src/terminal.go+1 added-1 removed
386 unmodified lines
387 if t.inlineInfo {388 line -= 1389 }390 if line >= max {391 break391 continue392 }393 trimmed, colors, newState := extractColor(&lineStr, state)394 state = newState395 item := &Item{
641 unmodified lines
modified:test/test_go.rb+4 added-1 removed
678 unmodified lines
679 end680681 def test_header_lines_overflow682 tmux.send_keys "seq 100 | #{fzf '--header-lines=200'}", :Enter683 tmux.until { |lines| lines[-2].include?('0/0') }683 tmux.until do |lines|684 lines[-2].include?('0/0') &&685 lines[-3].include?(' 1')686 end687 tmux.send_keys :Enter688 assert_equal '', readonce.chomp689 end690
259 unmodified lines