]> Pileus Git - ~andy/gtk/commitdiff
Forgotten commit, already ChangeLogged.
authorMatthias Clasen <matthiasc@src.gnome.org>
Wed, 25 Dec 2002 00:39:51 +0000 (00:39 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Wed, 25 Dec 2002 00:39:51 +0000 (00:39 +0000)
gtk/gtktextview.c

index 39699d4c7cbb0f0c778b92366d9c47fb12cea01c..138c38a2731495f990b6f3086c180e306da61cef 100644 (file)
@@ -4646,10 +4646,13 @@ gtk_text_view_move_cursor_internal (GtkTextView     *text_view,
       break;
     }
 
+  /* call move_cursor() even if the cursor hasn't moved, since it 
+     cancels the selection
+  */
+  move_cursor (text_view, &newplace, extend_selection);
+
   if (!gtk_text_iter_equal (&insert, &newplace))
     {
-      move_cursor (text_view, &newplace, extend_selection);
-
       DV(g_print (G_STRLOC": scrolling onscreen\n"));
       gtk_text_view_scroll_mark_onscreen (text_view,
                                           gtk_text_buffer_get_mark (get_buffer (text_view),