From e5947a2a0fcded1148f37265d7e6e96acb4017b1 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 9 Dec 2024 17:54:03 +0900 Subject: [PATCH] Update comments --- src/terminal.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/terminal.go b/src/terminal.go index 28b28299f94..0111a42d817 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -4739,8 +4739,7 @@ func (t *Terminal) Loop() error { previewLeft := t.pwindow.Left() previewTop := t.pwindow.Top() - // Unlike window, pwindow does not include it's border, so - // Left and Top have to be adjusted. + // pwindow does not include it's border, so Left and Top have to be adjusted. if t.activePreviewOpts.border.HasLeft() { previewLeft -= 1 + t.borderWidth } @@ -4765,7 +4764,6 @@ func (t *Terminal) Loop() error { // +1 since index to size newSize = mx - left + 1 } - // TODO: should this allow a size of zero? if newSize < 1 { newSize = 1 }