File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -260,14 +260,11 @@ def send_escape() -> None:
260
260
# Check cursor position report
261
261
cursor_position_match = _re_cursor_position .match (sequence )
262
262
if cursor_position_match is not None :
263
- row , column = cursor_position_match .groups ()
264
- # Cursor position report conflicts with f3 key
265
- # If it is a keypress, "row" will be 1, so ignore
266
- if int (row ) != 1 :
267
- x = int (column ) - 1
268
- y = int (row ) - 1
269
- on_token (events .CursorPosition (x , y ))
270
- break
263
+ row , column = map (int , cursor_position_match .groups ())
264
+ x = int (column ) - 1
265
+ y = int (row ) - 1
266
+ on_token (events .CursorPosition (x , y ))
267
+ break
271
268
272
269
# Was it a pressed key event that we received?
273
270
key_events = list (sequence_to_key_events (sequence ))
You can’t perform that action at this time.
0 commit comments