Skip to content
Myr

Avoid full redraw on 'preview' action when preview window exists

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 d373cf8 · Browse files · 1 file+3 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

1 file+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:src/terminal.go+3 added-1 removed
3488 unmodified lines
3489 t.promptString = a.a3490 t.prompt, t.promptLen = t.parsePrompt(a.a)3491 req(reqPrompt)3492 case actPreview:3493 if !t.hasPreviewWindow() {3493 updatePreviewWindow(true)3494 updatePreviewWindow(true)3495 }3496 refreshPreview(a.a)3497 case actRefreshPreview:3498 refreshPreview(t.previewOpts.command)3499 case actReplaceQuery:
702 unmodified lines