Hi all,<br><br>In Math&#39;s inline editing, closing braces ( &#39;)&#39;, &quot;]&#39;, &#39;}&#39; ) are literally inserted independent of the context.<br>This is not necessarily intuitive.<br>For example, when I type &quot;( a b )&quot;, the result is &quot;( a b ) )&quot;.<br>
<br><span style="font-family: courier new,monospace;">(       : ( ?. )</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">( a     : ( a. )</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">( a b   : ( a b. )</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">( a b ) : ( a b ). )</span><br><br>Left: typed, Right: result<br>
Note: Dots denote the cursor position.<br><br>I fixed so that when you are at the tail of the brace and typed the closing brace, it does not insert anything but just move cursor out of the braces.<br><br><span style="font-family: courier new,monospace;">(       : ( ?. )</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">( a     : ( a. )</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">( a b   : ( a b. )</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">( a b ) : ( a b ).</span><br><br>I think this is more convenient and natural.<br>Reviews and comments are welcome.<br>The patch is available under LGPLv3+/MPL.<br><br>Thanks,<br>
<br>-- <br>Daisuke Nishino<br><br>