On Mi, 25 Sep 2013, Christian Brabandt wrote:

> On Wed, September 25, 2013 16:43, Axel Bender wrote:
> > Please compare the following case using the current (7.4.35) and a
> > previous (7.4ß = the last I can return to) version of gvim (here: Windows
> > 7 64 bit).
> >
> > In the current version a selection - after being copied over with the
> > contents of a register - is kept (no deselection).
> >
> > In the previous version the selection is deselected.
> 
> That is caused by 7.4.034. I'll post a patch, when I am at my developing
> machine.

Sorry for that, that was entirely my mistake.

This patch fixes it:

diff --git a/src/ops.c b/src/ops.c
--- a/src/ops.c
+++ b/src/ops.c
@@ -3808,9 +3808,6 @@
                    FALSE /* stop after 1 paste */
 #endif
                    );
-#ifdef FEAT_VISUAL
-           VIsual_active = FALSE;
-#endif
 
            curbuf->b_op_end = curwin->w_cursor;
            /* For "CTRL-O p" in Insert mode, put cursor after last char */
@@ -3972,6 +3969,10 @@
     if (regname == '=')
        vim_free(y_array);
 
+#ifdef FEAT_VISUAL
+    VIsual_active = FALSE;
+#endif
+
     /* If the cursor is past the end of the line put it at the end. */
     adjust_cursor_eol();
 }


regards,
Christian
-- 
Sagt der Taschendieb zu seiner schwangeren Frau:
"Wenn es ein Mädchen wird, soll sie Klaudia heißen."

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui