8b9a1c
To: vim_dev@googlegroups.com
8b9a1c
Subject: Patch 7.4.041
8b9a1c
Fcc: outbox
8b9a1c
From: Bram Moolenaar <Bram@moolenaar.net>
8b9a1c
Mime-Version: 1.0
8b9a1c
Content-Type: text/plain; charset=UTF-8
8b9a1c
Content-Transfer-Encoding: 8bit
8b9a1c
------------
8b9a1c
8b9a1c
Patch 7.4.041 (after 7.4.034)
8b9a1c
Problem:    Visual selection does not remain after being copied over. (Axel
8b9a1c
	    Bender)
8b9a1c
Solution:   Move when VIsual_active is reset. (Christian Brabandt)
8b9a1c
Files:	    src/ops.c
8b9a1c
8b9a1c
8b9a1c
*** ../vim-7.4.040/src/ops.c	2013-09-22 15:23:38.000000000 +0200
8b9a1c
--- src/ops.c	2013-09-25 23:20:37.000000000 +0200
8b9a1c
***************
8b9a1c
*** 3808,3816 ****
8b9a1c
  		    FALSE /* stop after 1 paste */
8b9a1c
  #endif
8b9a1c
  		    );
8b9a1c
- #ifdef FEAT_VISUAL
8b9a1c
- 	    VIsual_active = FALSE;
8b9a1c
- #endif
8b9a1c
  
8b9a1c
  	    curbuf->b_op_end = curwin->w_cursor;
8b9a1c
  	    /* For "CTRL-O p" in Insert mode, put cursor after last char */
8b9a1c
--- 3808,3813 ----
8b9a1c
***************
8b9a1c
*** 3972,3977 ****
8b9a1c
--- 3969,3978 ----
8b9a1c
      if (regname == '=')
8b9a1c
  	vim_free(y_array);
8b9a1c
  
8b9a1c
+ #ifdef FEAT_VISUAL
8b9a1c
+     VIsual_active = FALSE;
8b9a1c
+ #endif
8b9a1c
+ 
8b9a1c
      /* If the cursor is past the end of the line put it at the end. */
8b9a1c
      adjust_cursor_eol();
8b9a1c
  }
8b9a1c
*** ../vim-7.4.040/src/version.c	2013-09-25 21:00:24.000000000 +0200
8b9a1c
--- src/version.c	2013-09-25 23:20:46.000000000 +0200
8b9a1c
***************
8b9a1c
*** 740,741 ****
8b9a1c
--- 740,743 ----
8b9a1c
  {   /* Add new patch number below this line */
8b9a1c
+ /**/
8b9a1c
+     41,
8b9a1c
  /**/
8b9a1c
8b9a1c
8b9a1c
-- 
8b9a1c
press CTRL-ALT-DEL for more information
8b9a1c
8b9a1c
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
8b9a1c
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
8b9a1c
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
8b9a1c
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///