gtksourceview r2211 - in branches/indenters: . gtksourceview
- From: icq svn gnome org
- To: svn-commits-list gnome org
- Subject: gtksourceview r2211 - in branches/indenters: . gtksourceview
- Date: Sun, 8 Mar 2009 19:41:52 +0000 (UTC)
Author: icq
Date: Sun Mar 8 19:41:52 2009
New Revision: 2211
URL: http://svn.gnome.org/viewvc/gtksourceview?rev=2211&view=rev
Log:
2009-03-08 Ignacio Casal Quinteiro <nacho resa gmail com>
* gtksourceview/c-indenter.c:
Pass the backward iter when calculating the indent level.
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 Sun Mar 8 19:41:52 2009
@@ -3402,6 +3402,9 @@
gint indent_level;
gchar *indent = NULL;
+ /* Move back one char to calculate the level */
+ gtk_text_iter_backward_char (&cur);
+
/* Calculate line indentation and create indent string. */
indent_level = gtk_source_indenter_get_indentation_level (indenter,
GTK_TEXT_VIEW (view),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]