[gnome-builder] sourceview: update target position upon deletion



commit eabde3428833fbef7187f39aaca424dc34164013
Author: Christian Hergert <christian hergert me>
Date:   Sun Mar 29 12:32:15 2015 -0700

    sourceview: update target position upon deletion
    
    This helps with situations like `x` in vim mode.

 libide/ide-source-view.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libide/ide-source-view.c b/libide/ide-source-view.c
index f15f3c8..392cad8 100644
--- a/libide/ide-source-view.c
+++ b/libide/ide-source-view.c
@@ -248,6 +248,7 @@ static void ide_source_view_real_restore_insert_mark (IdeSourceView         *sel
 static void ide_source_view_real_set_mode            (IdeSourceView         *self,
                                                       const gchar           *name,
                                                       IdeSourceViewModeType  type);
+static void ide_source_view_save_offset              (IdeSourceView         *self);
 
 static SearchMovement *
 search_movement_ref (SearchMovement *movement)
@@ -2614,6 +2615,8 @@ ide_source_view_real_delete_selection (IdeSourceView *self)
     {
       gtk_text_buffer_delete_selection (buffer, TRUE, editable);
     }
+
+  ide_source_view_save_offset (self);
 }
 
 static void


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