mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-16 05:24:20 +02:00
Compare commits
1 Commits
slang
...
copilot/fi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dbfab0a2b7 |
@@ -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():
|
if not isinstance(amt, int) and not amt.is_integer():
|
||||||
amt = round(window.screen.lines * amt)
|
amt = round(window.screen.lines * amt)
|
||||||
unit = 'line'
|
unit = 'line'
|
||||||
|
else:
|
||||||
|
unit = 'page'
|
||||||
assert isinstance(amt, int)
|
assert isinstance(amt, int)
|
||||||
direction = 'up' if amt < 0 else 'down'
|
direction = 'up' if amt < 0 else 'down'
|
||||||
func = getattr(window, f'scroll_{unit}_{direction}')
|
func = getattr(window, f'scroll_{unit}_{direction}')
|
||||||
|
|||||||
Reference in New Issue
Block a user