Merge branch 'fix-page-scroll' of https://github.com/rivenirvana/kitty
This commit is contained in:
commit
19d632f3fc
1 changed files with 2 additions and 1 deletions
|
|
@ -78,7 +78,8 @@ def response_from_kitty(self, boss: Boss, window: Window | None, payload_get: Pa
|
|||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue