anjuta r3771 - in trunk: . plugins/language-support-cpp-java
- From: jhs svn gnome org
- To: svn-commits-list gnome org
- Subject: anjuta r3771 - in trunk: . plugins/language-support-cpp-java
- Date: Wed, 12 Mar 2008 09:02:08 +0000 (GMT)
Author: jhs
Date: Wed Mar 12 09:02:08 2008
New Revision: 3771
URL: http://svn.gnome.org/viewvc/anjuta?rev=3771&view=rev
Log:
2008-03-12 Johannes Schmid <jhs gnome org>
* plugins/language-support-cpp-java/plugin.c (extract_mode_line),
(get_line_indentation_base):
#521847 â anjuta freez when edit file
Modified:
trunk/ChangeLog
trunk/plugins/language-support-cpp-java/plugin.c
Modified: trunk/plugins/language-support-cpp-java/plugin.c
==============================================================================
--- trunk/plugins/language-support-cpp-java/plugin.c (original)
+++ trunk/plugins/language-support-cpp-java/plugin.c Wed Mar 12 09:02:08 2008
@@ -556,7 +556,7 @@
/* Check for escape characters */
while (end_modeline)
{
- if ((end_modeline - 1) != "\\")
+ if (!g_str_equal ((end_modeline - 1), "\\"))
break;
end_modeline++;
end_modeline = strstr (end_modeline, ":");
@@ -564,7 +564,7 @@
if (end_modeline)
{
gchar* vim_modeline = g_strndup (begin_modeline, end_modeline - begin_modeline);
- *vim = TRUE;
+ *vim = TRUE;
return vim_modeline;
}
}
@@ -890,16 +890,22 @@
}
if (c == '/')
{
- if (!ianjuta_iterable_previous (new_iter, NULL))
+ IAnjutaIterable* tmp_iter = ianjuta_iterable_clone (new_iter, NULL);
+ if (!ianjuta_iterable_previous (tmp_iter, NULL))
+ {
+ g_object_unref (tmp_iter);
break;
- c = ianjuta_editor_cell_get_char (IANJUTA_EDITOR_CELL (new_iter), 0,
+ }
+ c = ianjuta_editor_cell_get_char (IANJUTA_EDITOR_CELL (tmp_iter), 0,
NULL);
if (c == '/')
{
/* is a line comment, skip until begin of comment */
comment = TRUE;
+ g_object_unref (tmp_iter);
break;
}
+ g_object_unref (tmp_iter);
}
} while (ianjuta_iterable_previous (new_iter, NULL));
if (comment)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]