Blame SOURCES/7.4.041

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