mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-01-03 07:12:20 +00:00
Update comments
This commit is contained in:
parent
289997e373
commit
6c9025ff17
@ -4736,8 +4736,7 @@ func (t *Terminal) Loop() error {
|
|||||||
|
|
||||||
previewLeft := t.pwindow.Left()
|
previewLeft := t.pwindow.Left()
|
||||||
previewTop := t.pwindow.Top()
|
previewTop := t.pwindow.Top()
|
||||||
// Unlike window, pwindow does not include it's border, so
|
// pwindow does not include it's border, so Left and Top have to be adjusted.
|
||||||
// Left and Top have to be adjusted.
|
|
||||||
if t.activePreviewOpts.border.HasLeft() {
|
if t.activePreviewOpts.border.HasLeft() {
|
||||||
previewLeft -= 1 + t.borderWidth
|
previewLeft -= 1 + t.borderWidth
|
||||||
}
|
}
|
||||||
@ -4762,7 +4761,6 @@ func (t *Terminal) Loop() error {
|
|||||||
// +1 since index to size
|
// +1 since index to size
|
||||||
newSize = mx - left + 1
|
newSize = mx - left + 1
|
||||||
}
|
}
|
||||||
// TODO: should this allow a size of zero?
|
|
||||||
if newSize < 1 {
|
if newSize < 1 {
|
||||||
newSize = 1
|
newSize = 1
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user