Use same co-ord system for cursor as in KITTY_PIPE_DATA
This commit is contained in:
parent
9a6c2aa1ea
commit
80c13fa75b
@ -75,10 +75,10 @@ the command line:
|
||||
replaced by the number of lines kitty is currently scrolled by
|
||||
|
||||
``@cursor-x``
|
||||
replaced by the current cursor x position
|
||||
replaced by the current cursor x position with 1 being the leftmost cell
|
||||
|
||||
``@cursor-y``
|
||||
replaced by the current cursor y position
|
||||
replaced by the current cursor y position with 1 being the topmost cell
|
||||
|
||||
|
||||
For example::
|
||||
|
||||
@ -324,9 +324,9 @@ def launch(
|
||||
if x == '@scrolled-by':
|
||||
x = str(screen.scrolled_by)
|
||||
elif x == '@cursor-x':
|
||||
x = str(screen.cursor.x)
|
||||
x = str(screen.cursor.x + 1)
|
||||
elif x == '@cursor-y':
|
||||
x = str(screen.cursor.y)
|
||||
x = str(screen.cursor.y + 1)
|
||||
final_cmd.append(x)
|
||||
exe = find_exe(final_cmd[0])
|
||||
if not exe:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user