Trigger a reflow event when closing a bracketed expression
If this doesn't happen, an edit event won't be triggered when we write an
unmatched expression like `(3, 4]`. This means that our handler won't
know about the mismatched bracket until we type something else.
diff --git a/src/commands/math/commands.js b/src/commands/math/commands.js
index 37c00bf..2c279d1 100644
--- a/src/commands/math/commands.js
+++ b/src/commands/math/commands.js
@@ -558,8 +558,8 @@
Fragment(cursor[side], cursor.parent.ends[side], -side) // me and ghost outside
.disown().withDirAdopt(-side, brack.parent, brack, brack[side])
.jQ.insDirOf(side, brack.jQ);
- brack.bubble('reflow');
}
+ brack.bubble('reflow');
}
else {
brack = this, side = brack.side;