[Libreoffice] [PATCH] Move cursor to the right of brace when the closing brace is typed.

Daisuke Nishino niboshi000 at gmail.com
Tue Nov 15 03:26:59 PST 2011


Hi all,

In Math's inline editing, closing braces ( ')', "]', '}' ) are literally
inserted independent of the context.
This is not necessarily intuitive.
For example, when I type "( a b )", the result is "( a b ) )".

(       : ( ?. )
( a     : ( a. )
( a b   : ( a b. )
( a b ) : ( a b ). )

Left: typed, Right: result
Note: Dots denote the cursor position.

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.

(       : ( ?. )
( a     : ( a. )
( a b   : ( a b. )
( a b ) : ( a b ).

I think this is more convenient and natural.
Reviews and comments are welcome.
The patch is available under LGPLv3+/MPL.

Thanks,

-- 
Daisuke Nishino
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20111115/1fa6270e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Move-cursor-to-the-right-of-brace-when-the-clos.core.patch
Type: application/octet-stream
Size: 8995 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20111115/1fa6270e/attachment.obj>


More information about the LibreOffice mailing list