Kaydet (Commit) 711be160 authored tarafından Enrico Tröger's avatar Enrico Tröger

Fixed "while" and "switch" autocompletion.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@716 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 7d6c5401
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
Made increase/decrease indentation working with selections. Made increase/decrease indentation working with selections.
Keep the old cursor position when working on a single line Keep the old cursor position when working on a single line
(do not jump to line start). (do not jump to line start).
* src/sci_cb.c: Fixed "while" and "switch" autocompletion.
2006-08-14 Nick Treleaven <nick.treleaven@btinternet.com> 2006-08-14 Nick Treleaven <nick.treleaven@btinternet.com>
......
...@@ -670,7 +670,7 @@ void sci_cb_auto_forif(ScintillaObject *sci, gint pos, gint idx) ...@@ -670,7 +670,7 @@ void sci_cb_auto_forif(ScintillaObject *sci, gint pos, gint idx)
} }
else if (! strncmp("while", buf + 10, 5)) 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); construct = g_strdup_printf("()%s{%s\t%s}%s", eol, eol, eol, eol);
...@@ -701,7 +701,7 @@ void sci_cb_auto_forif(ScintillaObject *sci, gint pos, gint idx) ...@@ -701,7 +701,7 @@ void sci_cb_auto_forif(ScintillaObject *sci, gint pos, gint idx)
} }
else if (! strncmp("switch", buf + 9, 6)) 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); construct = g_strdup_printf("()%s{%s\tcase : break;%s\tdefault: %s}%s", eol, eol, eol, eol, eol);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment