mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-27 03:42:49 +00:00
Fix remote control scroll-window argument parsing
This commit is contained in:
parent
832f7a862b
commit
42b5b1cbf7
1 changed files with 1 additions and 2 deletions
|
|
@ -40,9 +40,8 @@ class ScrollWindow(RemoteCommand):
|
|||
if amt not in ('start', 'end'):
|
||||
pages = 'p' in amt
|
||||
unscroll = 'u' in amt
|
||||
amt = amt.replace('p', '')
|
||||
mult = -1 if amt.endswith('-') and not unscroll else 1
|
||||
q = int(amt.replace('-', ''))
|
||||
q = int(amt.rstrip('+-pu'))
|
||||
amount = q * mult, 'p' if pages else ('u' if unscroll else 'l')
|
||||
|
||||
return {'match': opts.match, 'amount': amount}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue