Skip to content
Myr

Properly clear list when --header-lines not filled on reload

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 1e6ac55 · Browse files · 3 files+14 added−1 removed
This commit

State

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

Diff stats

3 files+14 added−1 removed

  • tests:+7 added−0 removed
  • other:+7 added−1 removed

3 files+14 added−1 removed

modified:src/core.go+3 added-1 removed
293 unmodified lines
294 terminal.UpdateProgress(val)295 }296297 case EvtHeader:298 header := value.([]string)299 header = append(header, make([]string, opts.HeaderLines-len(header))...)298 terminal.UpdateHeader(value.([]string))300 terminal.UpdateHeader(header)301302 case EvtSearchFin:303 switch val := value.(type) {304 case *Merger:
39 unmodified lines
modified:test/test_go.rb+7 added
1645 unmodified lines
1646 tmux.until { |lines| lines.item_count.zero? }1647 tmux.send_keys :Space1648 tmux.until { |lines| lines.item_count == 10 }1649 end16501651 def test_clear_list_when_header_lines_changed_due_to_reload1652 tmux.send_keys %(seq 10 | #{FZF} --header 0 --header-lines 3 --bind 'space:reload(seq 1)'), :Enter1653 tmux.until { |lines| lines.any? { |line| line.include?('9') } }1654 tmux.send_keys :Space1655 tmux.until { |lines| lines.none? { |line| line.include?('9') } }1656 end1657end16581659module TestShell1660 def setup
370 unmodified lines
modified:CHANGELOG.md+4 added
22 unmodified lines
23 action contains `+` character.24 ```sh25 fzf --multi --bind 'ctrl-l:select-all+execute(less {+f})+deselect-all'26 ```27- Fixed bugs of reload action28 - Not triggered when there's no match even when the command doesn't have29 any placeholder expressions30 - Screen not properly cleared when `--header-lines` not filled on reload31320.19.033------34
761 unmodified lines