Skip to content
Myr

Fix resizing of a one-time preview window

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 c587017 · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:src/terminal.go+2 added-2 removed
5414 unmodified lines
5415 }5416 }5417 }54185419 if pborderDragging >= 0 {5419 if pborderDragging >= 0 && t.hasPreviewWindow() {5420 var newSize int5421 var prevSize int5422 switch t.activePreviewOpts.position {5423 case posLeft:
22 unmodified lines
5446 break5447 }54485449 t.activePreviewOpts.size = sizeSpec{float64(newSize), false}5450 updatePreviewWindow(false)5450 updatePreviewWindow(true)5451 req(reqPreviewRefresh)5452 break5453 }5454
539 unmodified lines