Skip to content

Commit 51ccb92

Browse files
Fix 'variable referenced before assignment' error in vt100 mouse bindings.
1 parent f3088dc commit 51ccb92

File tree

1 file changed

+1
-1
lines changed
  • prompt_toolkit/key_binding/bindings

1 file changed

+1
-1
lines changed

prompt_toolkit/key_binding/bindings/mouse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def _(event: E) -> "NotImplementedOrNone":
202202
mouse_event, x, y = map(ord, event.data[3:])
203203

204204
# TODO: Is it possible to add modifiers here?
205-
mouse_button, mouse_event_type, mouse_modifier = typical_mouse_events[
205+
mouse_button, mouse_event_type, mouse_modifiers = typical_mouse_events[
206206
mouse_event
207207
]
208208

0 commit comments

Comments
 (0)