[gnome-builder/wip/halfline/repeatable-indent: 3/4] vim: don't clear selection after indenting



commit d0b671600831685a25a3e7c94f0443de441bc333
Author: Ray Strode <rstrode redhat com>
Date:   Tue Feb 10 14:35:21 2015 -0500

    vim: don't clear selection after indenting
    
    Technically, clearing the selection is right, but
    the selection isn't saved turn recording, and it's
    needed to implement replay.
    
    This commit keeps the selection around, to make way
    for adding replay support to '<' and '>'
    
    https://bugzilla.gnome.org/show_bug.cgi?id=744286

 src/vim/gb-source-vim.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/src/vim/gb-source-vim.c b/src/vim/gb-source-vim.c
index 9439ac7..bceff6b 100644
--- a/src/vim/gb-source-vim.c
+++ b/src/vim/gb-source-vim.c
@@ -4743,8 +4743,6 @@ gb_source_vim_cmd_indent (GbSourceVim *vim,
 
   for (i = 0; i < count; i++)
     gb_source_vim_indent (vim);
-
-  gb_source_vim_clear_selection (vim);
 }
 
 static void
@@ -4760,8 +4758,6 @@ gb_source_vim_cmd_unindent (GbSourceVim *vim,
 
   for (i = 0; i < count; i++)
     gb_source_vim_unindent (vim);
-
-  gb_source_vim_clear_selection (vim);
 }
 
 static void


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