[Geany-devel] "Auto-close quotes and brackets" - addition request
JGuillaume (ioguix) de Rorthais
ioguix at xxxxx
Thu Jan 8 04:40:52 UTC 2009
-----BEGIN PGP SIGNED MESSAGE-----
Happy New Year to you guys ! Best wish to you and Geany :)
In reply to this discussion on the geany list:
I did my own version of the patch (in attachment). It still have
following some flaws:
- - when you insert an autoclosed char and immediatly delete it, the
non-autoclose code kicks in anyway (I'm not sure how/where to deal
with the delete keys)
- - when inserting a quote (double or not), coming back before it and
inserting another one, the non-autoclose code kicks in anyway. Should
we test the next-char before non-autoclosing ?
- - the test for matching bracket seems a bit too greedy as autoclose
often doesn't kicks in because of a closing bracket few lines after.
Hadn't notice any lag with this code, however I wasn't notice lag with
Enrico's patch neither...so someone with an older computer should
probably check that.
Thanks for your next answer and review :)
Guillaume (ioguix) de Rorthais
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1511 bytes
Desc: not available
More information about the Devel