diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2024-12-09 17:54:03 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2024-12-12 13:53:08 +0900 |
| commit | 6c9025ff17cedcdc78d6f353019cefd118c3cc7c (patch) | |
| tree | fafc57e2c369b2f99bed7a3b25c005951275152e /src | |
| parent | 289997e37330c8429fa0d2d3f7b0a3e0ddf970f2 (diff) | |
| download | fzf-6c9025ff17cedcdc78d6f353019cefd118c3cc7c.tar.gz | |
Update comments
Diffstat (limited to 'src')
| -rw-r--r-- | src/terminal.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/terminal.go b/src/terminal.go index 7115dd29..59aff994 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -4736,8 +4736,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 } @@ -4762,7 +4761,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 } |
