SF.net SVN: geany-plugins:[2027] trunk/geanylatex

frlan at users.sourceforge.net frlan at xxxxx
Tue Apr 12 19:44:48 UTC 2011


Revision: 2027
          http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=2027&view=rev
Author:   frlan
Date:     2011-04-12 19:44:48 +0000 (Tue, 12 Apr 2011)

Log Message:
-----------
Don't add a {} after a command in case of [ has been typed before or [] is there. Closes #3285393.

The last case could happen on usage of \item[]

Modified Paths:
--------------
    trunk/geanylatex/ChangeLog
    trunk/geanylatex/src/geanylatex.c

Modified: trunk/geanylatex/ChangeLog
===================================================================
--- trunk/geanylatex/ChangeLog	2011-04-12 18:07:11 UTC (rev 2026)
+++ trunk/geanylatex/ChangeLog	2011-04-12 19:44:48 UTC (rev 2027)
@@ -1,3 +1,9 @@
+2011-04-12  Frank Lanitz  <frank(at)frank(dot)uvena(dot)de>
+
+ * Don't add a {} after a command in case of [ has been typed before or []
+   is there. Closes #3285393.
+
+
 2011-03-17  Frank Lanitz  <frank(at)frank(dot)uvena(dot)de>
 
  * Try to fix some compiler warnings. Patch ported from Geany-Plugins.

Modified: trunk/geanylatex/src/geanylatex.c
===================================================================
--- trunk/geanylatex/src/geanylatex.c	2011-04-12 18:07:11 UTC (rev 2026)
+++ trunk/geanylatex/src/geanylatex.c	2011-04-12 19:44:48 UTC (rev 2027)
@@ -614,7 +614,7 @@
 					}
 
 					/* Now we are handling the case, a new line has been inserted
-					* but no closing braces */
+					 * but no closing braces */
 					else if (glatex_autobraces_active == TRUE)
 					{
 						gint line;
@@ -654,6 +654,8 @@
 							else if (buf[i] == ' ' ||
 									 buf[i] == '}' ||
 									 buf[i] == '{' ||
+									 buf[i] == '[' ||
+									 buf[i] == ']' ||
 									 buf[i] == '"')
 							{
 								break;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Plugins-Commits mailing list