Fix change-preview reset by change-preview-window

Fix #3770
This commit is contained in:
Junegunn Choi
2024-05-06 09:40:02 +09:00
parent bf184449bc
commit 24ff66d4a9
2 changed files with 8 additions and 0 deletions

View File

@@ -4088,6 +4088,7 @@ func (t *Terminal) Loop() {
// Reset preview options and apply the additional options
t.previewOpts = t.initialPreviewOpts
t.previewOpts.command = currentPreviewOpts.command
// Split window options
tokens := strings.Split(a.a, "|")