[gtksourceview] Replace forward_visible_char by forward_char in get_visual_column.
- From: Jose Aliste <jaliste src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Replace forward_visible_char by forward_char in get_visual_column.
- Date: Sun, 18 Jul 2010 18:01:12 +0000 (UTC)
commit c84fbf289c2d244eb618c44ae51fa2a0e23dd71b
Author: Jose Aliste <jaliste src gnome org>
Date: Sun Jul 18 13:55:26 2010 -0400
Replace forward_visible_char by forward_char in get_visual_column.
Fixes bug #624666.
gtksourceview/gtksourceview.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/gtksourceview/gtksourceview.c b/gtksourceview/gtksourceview.c
index d0cf691..061b637 100644
--- a/gtksourceview/gtksourceview.c
+++ b/gtksourceview/gtksourceview.c
@@ -4975,7 +4975,7 @@ gtk_source_view_get_visual_column (GtkSourceView *view,
indent_width = get_real_indent_width (view);
position = *iter;
- gtk_text_iter_set_visible_line_offset (&position, 0);
+ gtk_text_iter_set_line_offset (&position, 0);
while (!gtk_text_iter_equal (&position, iter))
{
@@ -4987,8 +4987,10 @@ gtk_source_view_get_visual_column (GtkSourceView *view,
{
++column;
}
-
- if (!gtk_text_iter_forward_visible_cursor_position (&position))
+
+ /* FIXME: this does not handle invisible text correctly, but
+ * gtk_text_iter_forward_visible_cursor_position is too slow */
+ if (!gtk_text_iter_forward_char (&position))
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]