Skip to content
Myr

Disallow dragging the wrong sides of the border

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 6c9025f · Browse files · 1 file+12 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+12 added−1 removed

  • other:+12 added−1 removed

1 file+12 added−1 removed

modified:src/terminal.go+12 added-1 removed
4720 unmodified lines
4721 break4722 }47234724 // Preview border dragging (resizing)4725 pborderDragging = me.Down && (pborderDragging || clicked && t.hasPreviewWindow() && t.pborder.Enclose(my, mx))4725 if !pborderDragging && clicked && t.hasPreviewWindow() && t.pborder.Enclose(my, mx) {4726 switch t.activePreviewOpts.position {4727 case posUp:4728 pborderDragging = my == t.pborder.Top()+t.pborder.Height()-14729 case posDown:4730 pborderDragging = my == t.pborder.Top()4731 case posLeft:4732 pborderDragging = mx == t.pborder.Left()+t.pborder.Width()-14733 case posRight:4734 pborderDragging = mx == t.pborder.Left()4735 }4736 }4737 if pborderDragging {4738 previewWidth := t.pwindow.Width() + borderColumns(t.activePreviewOpts.border, t.borderWidth)4739 previewHeight := t.pwindow.Height() + borderLines(t.activePreviewOpts.border)4740 minPreviewWidth, minPreviewHeight := t.minPreviewSize(t.activePreviewOpts)
535 unmodified lines