spreadsheet

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

commit
473d38ce3e2090d5ab3493c057f5d18b534bef00
parent
ba4cc0f02e65546ad7a1cdb7956a7c33f3f51ad6
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2024-07-06 06:44
page size relative to screen size

Diffstat

M sheet/__main__.py 4 ++--

1 files changed, 2 insertions, 2 deletions


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

@@ -131,10 +131,10 @@ class App(boon.App):
  131   131                 self.cursor_y = max(self.cursor_y - 1, 0)
  132   132         elif key == boon.KEY_NPAGE:
  133   133             if self.maybe_submit_input():
  134    -1                 self.cursor_y += 20  # TODO: relativ to rows
   -1   134                 self.cursor_y += self.rows - 3
  135   135         elif key == boon.KEY_PPAGE:
  136   136             if self.maybe_submit_input():
  137    -1                 self.cursor_y = max(self.cursor_y - 20, 0)
   -1   137                 self.cursor_y = max(self.cursor_y - (self.rows - 3), 0)
  138   138         elif key == boon.KEY_RIGHT:
  139   139             if self.maybe_submit_input():
  140   140                 self.cursor_x += 1