Karsten Hopp cc554e
To: vim_dev@googlegroups.com
Karsten Hopp cc554e
Subject: Patch 7.3.498
Karsten Hopp cc554e
Fcc: outbox
Karsten Hopp cc554e
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp cc554e
Mime-Version: 1.0
Karsten Hopp cc554e
Content-Type: text/plain; charset=UTF-8
Karsten Hopp cc554e
Content-Transfer-Encoding: 8bit
Karsten Hopp cc554e
------------
Karsten Hopp cc554e
Karsten Hopp cc554e
Patch 7.3.498
Karsten Hopp cc554e
Problem:    The behavior of the "- register changes depending on value of
Karsten Hopp cc554e
	    the 'clipboard' option. (Szamotulski)
Karsten Hopp cc554e
Solution:   Also set the "- register when the register is "*" or "+".
Karsten Hopp cc554e
	    (Christian Brabandt)
Karsten Hopp cc554e
Files:	    src/ops.c
Karsten Hopp cc554e
Karsten Hopp cc554e
Karsten Hopp cc554e
*** ../vim-7.3.497/src/ops.c	2012-03-23 14:16:19.000000000 +0100
Karsten Hopp cc554e
--- src/ops.c	2012-04-20 13:36:32.000000000 +0200
Karsten Hopp cc554e
***************
Karsten Hopp cc554e
*** 1720,1728 ****
Karsten Hopp cc554e
  		did_yank = TRUE;
Karsten Hopp cc554e
  	}
Karsten Hopp cc554e
  
Karsten Hopp cc554e
! 	/* Yank into small delete register when no register specified and the
Karsten Hopp cc554e
! 	 * delete is within one line. */
Karsten Hopp cc554e
! 	if (oap->regname == 0 && oap->motion_type != MLINE
Karsten Hopp cc554e
  						      && oap->line_count == 1)
Karsten Hopp cc554e
  	{
Karsten Hopp cc554e
  	    oap->regname = '-';
Karsten Hopp cc554e
--- 1720,1733 ----
Karsten Hopp cc554e
  		did_yank = TRUE;
Karsten Hopp cc554e
  	}
Karsten Hopp cc554e
  
Karsten Hopp cc554e
! 	/* Yank into small delete register when no named register specified
Karsten Hopp cc554e
! 	 * and the delete is within one line. */
Karsten Hopp cc554e
! 	if ((
Karsten Hopp cc554e
! #ifdef FEAT_CLIPBOARD
Karsten Hopp cc554e
!             ((clip_unnamed & CLIP_UNNAMED) && oap->regname == '*') ||
Karsten Hopp cc554e
!             ((clip_unnamed & CLIP_UNNAMED_PLUS) && oap->regname == '+') ||
Karsten Hopp cc554e
! #endif
Karsten Hopp cc554e
! 	    oap->regname == 0) && oap->motion_type != MLINE
Karsten Hopp cc554e
  						      && oap->line_count == 1)
Karsten Hopp cc554e
  	{
Karsten Hopp cc554e
  	    oap->regname = '-';
Karsten Hopp cc554e
*** ../vim-7.3.497/src/version.c	2012-04-20 13:31:16.000000000 +0200
Karsten Hopp cc554e
--- src/version.c	2012-04-20 13:45:26.000000000 +0200
Karsten Hopp cc554e
***************
Karsten Hopp cc554e
*** 716,717 ****
Karsten Hopp cc554e
--- 716,719 ----
Karsten Hopp cc554e
  {   /* Add new patch number below this line */
Karsten Hopp cc554e
+ /**/
Karsten Hopp cc554e
+     498,
Karsten Hopp cc554e
  /**/
Karsten Hopp cc554e
Karsten Hopp cc554e
-- 
Karsten Hopp cc554e
Did you ever stop to think...  and forget to start again?
Karsten Hopp cc554e
                                  -- Steven Wright
Karsten Hopp cc554e
Karsten Hopp cc554e
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp cc554e
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp cc554e
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp cc554e
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///