From dbfab0a2b7f5eece3356907ce6ffed1fac157c72 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 12 Jul 2026 03:53:59 +0000 Subject: [PATCH] fix: scroll-window 1p regression - use 'page' unit string not 'p' --- kitty/rc/scroll_window.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kitty/rc/scroll_window.py b/kitty/rc/scroll_window.py index 5cc86befa..bdf422dd8 100644 --- a/kitty/rc/scroll_window.py +++ b/kitty/rc/scroll_window.py @@ -79,6 +79,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' + else: + unit = 'page' assert isinstance(amt, int) direction = 'up' if amt < 0 else 'down' func = getattr(window, f'scroll_{unit}_{direction}')