We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7987d33 commit eaba7e0Copy full SHA for eaba7e0
mathicsscript/bindkeys.py
@@ -64,7 +64,10 @@ def curly_right(event):
64
def paren_left(event):
65
b = event.cli.current_buffer
66
b.insert_text("(")
67
- b.insert_text(")", move_cursor=False)
+ if len(b.text) > 1 and b.text[-2] == "\\":
68
+ b.insert_text("\\)", move_cursor=False)
69
+ else:
70
+ b.insert_text(")", move_cursor=False)
71
72
73
@bindings.add(")", filter=autocomplete_on)
0 commit comments