Skip to content
Myr

Fix header window not updated on change-header

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 376142e · Browse files · 2 files+13 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

2 files+13 added−1 removed

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

2 files+13 added−1 removed

modified:src/terminal.go+6 added-1 removed
5131 unmodified lines
5132 if a.t == actTransformHeader {5133 header = t.captureLines(a.a)5134 }5135 if t.changeHeader(header) {5136 if t.headerWindow != nil {5137 // Need to resize header window5138 req(reqFullRedraw)5139 } else {5136 req(reqHeader, reqList, reqPrompt, reqInfo)5140 req(reqHeader, reqList, reqPrompt, reqInfo)5141 }5142 } else {5143 req(reqHeader)5144 }5145 case actChangeHeaderLabel, actTransformHeaderLabel:
1206 unmodified lines
modified:test/test_core.rb+7 added
1918 unmodified lines
1919 tmux.until { |lines| refute_includes lines, 'ddd 1' }1920 tmux.send_keys :Up1921 tmux.until { |lines| assert_includes lines, ' 2' }1922 end19231924 def test_change_header_on_header_window1925 tmux.send_keys %(seq 100 | #{FZF} --list-border --input-border --bind 'start:change-header(foo),space:change-header(bar)'), :Enter1926 tmux.until { |lines| assert lines.any_include?('foo') }1927 tmux.send_keys :Space1928 tmux.until { |lines| assert lines.any_include?('bar') }1929 end1930end