Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
junegunn committed Dec 9, 2024
1 parent 8216719 commit e5947a2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/terminal.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
}
Expand Down

0 comments on commit e5947a2

Please sign in to comment.