Skip to content
Myr

Run preview command when preview window appears after resize (#3113)

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

# Start fzf in a small screen so that the preview window is hidden fzf --bind 'ctrl-p:toggle-preview' --preview 'stat {}' --preview-window='right,50%,<100(down,50%,hidden)' # Enlarge the screen until the preview window appears. It should not be empty.

authored by Junegunn Choi · committed by Junegunn Choi · parent bf641fa · Browse files · 1 file+4 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

1 file+4 added−0 removed

  • other:+4 added−0 removed

1 file+4 added−0 removed

modified:src/terminal.go+4 added
2620 unmodified lines
2621 case reqReinit:2622 t.tui.Resume(t.fullscreen, t.sigstop)2623 t.redraw()2624 case reqFullRedraw:2625 wasHidden := t.pwindow == nil2626 t.redraw()2627 if wasHidden && t.pwindow != nil {2628 refreshPreview(t.previewOpts.command)2629 }2630 case reqClose:2631 exit(func() int {2632 if t.output() {2633 return exitOk
834 unmodified lines