gtksourceview r2212 - in branches/indenters: . gtksourceview
- From: icq svn gnome org
- To: svn-commits-list gnome org
- Subject: gtksourceview r2212 - in branches/indenters: . gtksourceview
- Date: Tue, 10 Mar 2009 10:29:52 +0000 (UTC)
Author: icq
Date: Tue Mar 10 10:29:52 2009
New Revision: 2212
URL: http://svn.gnome.org/viewvc/gtksourceview?rev=2212&view=rev
Log:
2009-03-10 Ignacio Casal Quinteiro <nacho resa gmail com>
* gtksourceview/gtksourceview.c:
Do not get the backward char if we are at the beginning
of the line.
Modified:
branches/indenters/ChangeLog
branches/indenters/gtksourceview/gtksourceview.c
Modified: branches/indenters/gtksourceview/gtksourceview.c
==============================================================================
--- branches/indenters/gtksourceview/gtksourceview.c (original)
+++ branches/indenters/gtksourceview/gtksourceview.c Tue Mar 10 10:29:52 2009
@@ -3403,7 +3403,8 @@
gchar *indent = NULL;
/* Move back one char to calculate the level */
- gtk_text_iter_backward_char (&cur);
+ if (!gtk_text_iter_starts_line (&cur))
+ gtk_text_iter_backward_char (&cur);
/* Calculate line indentation and create indent string. */
indent_level = gtk_source_indenter_get_indentation_level (indenter,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]