gtksourceview r2120 - in trunk: . gtksourceview
- From: muntyan svn gnome org
- To: svn-commits-list gnome org
- Subject: gtksourceview r2120 - in trunk: . gtksourceview
- Date: Fri, 2 Jan 2009 07:58:24 +0000 (UTC)
Author: muntyan
Date: Fri Jan 2 07:58:24 2009
New Revision: 2120
URL: http://svn.gnome.org/viewvc/gtksourceview?rev=2120&view=rev
Log:
2008-12-31 Yevgen Muntyan <muntyan tamu edu>
* gtksourceview/gtksourcecontextengine.c
(gtk_source_context_engine_text_inserted):
The commit before the last one was broken, now bug #566131
is really fixed.
Modified:
trunk/ChangeLog
trunk/gtksourceview/gtksourcecontextengine.c
Modified: trunk/gtksourceview/gtksourcecontextengine.c
==============================================================================
--- trunk/gtksourceview/gtksourcecontextengine.c (original)
+++ trunk/gtksourceview/gtksourcecontextengine.c Fri Jan 2 07:58:24 2009
@@ -1675,6 +1675,8 @@
g_return_if_fail (start_offset < end_offset);
+ invalidate_region (ce, start_offset, end_offset - start_offset);
+
/* If end_offset is at the start of a line (enter key pressed) then
* we need to invalidate the whole new line, otherwise it may not be
* highlighted because the engine analyzes the previous line, end
@@ -1684,10 +1686,8 @@
if (gtk_text_iter_starts_line (&iter) && !gtk_text_iter_ends_line (&iter))
{
gtk_text_iter_forward_to_line_end (&iter);
- end_offset = gtk_text_iter_get_offset (&iter);
+ invalidate_region (ce, gtk_text_iter_get_offset (&iter), 0);
}
-
- invalidate_region (ce, start_offset, end_offset - start_offset);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]