diff options
| author | ewy <ewy0@protonmail.com> | 2026-04-29 22:34:47 +0200 |
|---|---|---|
| committer | ewy <ewy0@protonmail.com> | 2026-04-29 22:34:47 +0200 |
| commit | 42fb6efd01e3640ea9d15dc1e0a072c1ea8295b1 (patch) | |
| tree | ebf351b66f0288c8e9f879c529a962b025bebf15 /viewport | |
| parent | 03a31799a872385d821130f46942fc13dae76774 (diff) | |
fix very embarrassing bug where -a didnt actually work
Diffstat (limited to 'viewport')
| -rw-r--r-- | viewport/viewport.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/viewport/viewport.go b/viewport/viewport.go index ff1ca05..7b897e7 100644 --- a/viewport/viewport.go +++ b/viewport/viewport.go @@ -52,9 +52,9 @@ func Crop(input string, lines []string, height int) (output string, scrollStart } if end >= size { - diff := size - 1 - end - start += diff - end += diff + diff := end - size + start -= diff + end -= diff } scrollStart = float32(start) / float32(size) |
