[gtksourceview] Remove workaround for a fixed bug



commit 45d66f8c9f144e86bba174e8ff11c01952b696e0
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri Aug 15 18:59:00 2014 +0200

    Remove workaround for a fixed bug
    
    The bug has been fixed in GTK+ this cycle:
    https://bugzilla.gnome.org/show_bug.cgi?id=618852

 gtksourceview/gtksourceview.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/gtksourceview/gtksourceview.c b/gtksourceview/gtksourceview.c
index c0799ac..ec5c340 100644
--- a/gtksourceview/gtksourceview.c
+++ b/gtksourceview/gtksourceview.c
@@ -1412,13 +1412,7 @@ move_to_last_char (GtkTextView *text_view,
                if (!g_unichar_isspace (c))
                {
                        /* We've gone one cursor position too far. */
-                       if (!gtk_text_iter_forward_visible_cursor_position (iter))
-                       {
-                               /* There is some kind of bug where it won't move
-                                  to the last cursor position... */
-                               gtk_text_iter_forward_to_end (iter);
-                       }
-
+                       gtk_text_iter_forward_visible_cursor_position (iter);
                        break;
                }
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]