From 8c3e59d87a6e3b75dc000923f98903c150082347 Mon Sep 17 00:00:00 2001 From: Arvin Verain Date: Sat, 24 Jan 2026 01:01:14 +0800 Subject: [PATCH] fix: Revert changes to page scrolling --- kitty/rc/scroll_window.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kitty/rc/scroll_window.py b/kitty/rc/scroll_window.py index 1520eebd9..f857ef6a8 100644 --- a/kitty/rc/scroll_window.py +++ b/kitty/rc/scroll_window.py @@ -78,7 +78,8 @@ using this option means that you will not be notified of failures. if not isinstance(amt, int) and not amt.is_integer(): amt = round(window.screen.lines * amt) unit = 'line' - func = window.scroll_page_up if amt < 0 else window.scroll_page_down + direction = 'up' if amt < 0 else 'down' + func = getattr(window, f'scroll_{unit}_{direction}') for i in range(int(abs(amt))): func() return None