Skip to content
Myr

Reload should update preview window

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

Fix #2644

authored by Junegunn Choi · committed by Junegunn Choi · parent 4138333 · Browse files · 2 files+8 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+8 added−0 removed

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

2 files+8 added−0 removed

modified:src/terminal.go+1 added
2671 unmodified lines
2672 if valid {2673 command := t.replacePlaceholder(a.a, false, string(t.input), list)2674 newCommand = &command2675 t.reading = true2676 t.version++2677 }2678 case actUnbind:2679 keys := parseKeyChords(a.a, "PANIC")2680 for key := range keys {
108 unmodified lines
modified:test/test_go.rb+7 added
2067 unmodified lines
2068 end2069 tmux.send_keys :Up2070 tmux.until { |lines| assert_includes lines[1], '[[99]]' }2071 end20722073 def test_reload_should_update_preview2074 tmux.send_keys "seq 3 | #{FZF} --bind 'ctrl-t:reload:echo 4' --preview 'echo {}' --preview-window 'nohidden'", :Enter2075 tmux.until { |lines| assert_includes lines[1], '1' }2076 tmux.send_keys 'C-t'2077 tmux.until { |lines| assert_includes lines[1], '4' }2078 end2079end20802081module TestShell2082 def setup
478 unmodified lines