spreadsheet

terminal spreadsheet application
git clone https://git.ce9e.org/spreadsheet.git

commit
16f9704678f35fb1a7555a8b2cce5314ddbe0328
parent
965115ae120856328d5c240a33ecabc8b4c65287
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2024-07-06 18:25
fix scroll_into_view row_head offset

Diffstat

M sheet/__main__.py 2 +-

1 files changed, 1 insertions, 1 deletions


diff --git a/sheet/__main__.py b/sheet/__main__.py

@@ -59,7 +59,7 @@ class App(boon.App):
   59    59         else:
   60    60             widths = [self.get_width(x) for x in range(self.x0, self.cursor_x + 1)]
   61    61             offset = 0
   62    -1             while sum(widths[offset:]) > cols:
   -1    62             while 4 + sum(widths[offset:]) > cols:
   63    63                 offset += 1
   64    64             self.x0 += offset
   65    65