SF.net SVN: geany: [716] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Tue Aug 15 09:01:55 UTC 2006


Revision: 716
Author:   eht16
Date:     2006-08-15 02:01:47 -0700 (Tue, 15 Aug 2006)
ViewCVS:  http://svn.sourceforge.net/geany/?rev=716&view=rev

Log Message:
-----------
Fixed "while" and "switch" autocompletion.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/sci_cb.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2006-08-15 08:51:48 UTC (rev 715)
+++ trunk/ChangeLog	2006-08-15 09:01:47 UTC (rev 716)
@@ -4,6 +4,7 @@
    Made increase/decrease indentation working with selections.
    Keep the old cursor position when working on a single line
    (do not jump to line start).
+ * src/sci_cb.c: Fixed "while" and "switch" autocompletion.
 
 
 2006-08-14  Nick Treleaven  <nick.treleaven at btinternet.com>

Modified: trunk/src/sci_cb.c
===================================================================
--- trunk/src/sci_cb.c	2006-08-15 08:51:48 UTC (rev 715)
+++ trunk/src/sci_cb.c	2006-08-15 09:01:47 UTC (rev 716)
@@ -670,7 +670,7 @@
 	}
 	else if (! strncmp("while", buf + 10, 5))
 	{
-		if (! isspace(*buf + 9)) goto free_and_return;
+		if (! isspace(*(buf + 9))) goto free_and_return;
 
 		construct = g_strdup_printf("()%s{%s\t%s}%s", eol, eol, eol, eol);
 
@@ -701,7 +701,7 @@
 	}
 	else if (! strncmp("switch", buf + 9, 6))
 	{
-		if (! isspace(*buf + 8)) goto free_and_return;
+		if (! isspace(*(buf + 8))) goto free_and_return;
 
 		construct = g_strdup_printf("()%s{%s\tcase : break;%s\tdefault: %s}%s", eol, eol, eol, eol, eol);
 


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




More information about the Commits mailing list