Revision: 1921 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1921&view=re... Author: frlan Date: 2011-02-11 20:28:34 +0000 (Fri, 11 Feb 2011)
Log Message: ----------- GeanyLaTeX: Don't insert {} after ^ and _
Modified Paths: -------------- trunk/geanylatex/ChangeLog trunk/geanylatex/src/geanylatex.c
Modified: trunk/geanylatex/ChangeLog =================================================================== --- trunk/geanylatex/ChangeLog 2011-02-11 19:58:27 UTC (rev 1920) +++ trunk/geanylatex/ChangeLog 2011-02-11 20:28:34 UTC (rev 1921) @@ -1,6 +1,7 @@ 2011-02-11 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
* Add a switch to turn on/off autoadding of {} after ^ and _ via keystroke. + * Don't insert {} after ^ and _.
2011-02-06 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
Modified: trunk/geanylatex/src/geanylatex.c =================================================================== --- trunk/geanylatex/src/geanylatex.c 2011-02-11 19:58:27 UTC (rev 1920) +++ trunk/geanylatex/src/geanylatex.c 2011-02-11 20:28:34 UTC (rev 1921) @@ -668,8 +668,11 @@ { if (glatex_autobraces_active == TRUE) { - sci_insert_text(sci, -1, "{}"); - sci_set_current_position(sci, pos + 1, TRUE); + if (sci_get_char_at(sci, pos -2) != '\') + { + sci_insert_text(sci, -1, "{}"); + sci_set_current_position(sci, pos + 1, TRUE); + } } break; }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.