diff options
| author | citrons <citrons@mondecitronne.com> | 2025-06-02 08:00:26 -0500 |
|---|---|---|
| committer | citrons <citrons@mondecitronne.com> | 2025-06-02 08:00:26 -0500 |
| commit | c9548e938589d730338db84c9649fed81c852705 (patch) | |
| tree | d1ed1254dc33c2b20ef0e1ec452af76b03c320c7 /tui | |
| parent | 58281da28614386809eab60c9dcbb86082354f1b (diff) | |
command window preview
Diffstat (limited to 'tui')
| -rw-r--r-- | tui/layout.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tui/layout.go b/tui/layout.go index 2becbb8..3b70881 100644 --- a/tui/layout.go +++ b/tui/layout.go @@ -305,8 +305,8 @@ func (b *Box) computePositions(axis int) { } else { c.computedPosition += b.Scroll.absolute } - if c.computedPosition >= b.computedRect.min[axis] && - c.computedPosition < b.computedRect.max[axis] { + pos := c.computedPosition + b.computedRect.min[axis] + if c.computedPosition >= 0 && pos < b.computedRect.max[axis] { if firstShown == nil { firstShown = c } |
