Karsten Hopp 7c4415
To: vim_dev@googlegroups.com
Karsten Hopp 7c4415
Subject: Patch 7.3.186
Karsten Hopp 7c4415
Fcc: outbox
Karsten Hopp 7c4415
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 7c4415
Mime-Version: 1.0
Karsten Hopp 7c4415
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 7c4415
Content-Transfer-Encoding: 8bit
Karsten Hopp 7c4415
------------
Karsten Hopp 7c4415
Karsten Hopp 7c4415
Patch 7.3.186
Karsten Hopp 7c4415
Problem:    When 'clipboard' contains "unnamed" or "unnamedplus" the value of
Karsten Hopp 7c4415
	    v:register is wrong for operators without a specific register.
Karsten Hopp 7c4415
Solution:   Adjust the register according to 'clipboard'. (Ingo Karkat)
Karsten Hopp 7c4415
Files:	    src/normal.c
Karsten Hopp 7c4415
Karsten Hopp 7c4415
Karsten Hopp 7c4415
*** ../vim-7.3.185/src/normal.c	2010-12-17 18:52:56.000000000 +0100
Karsten Hopp 7c4415
--- src/normal.c	2011-05-10 16:07:49.000000000 +0200
Karsten Hopp 7c4415
***************
Karsten Hopp 7c4415
*** 1202,1208 ****
Karsten Hopp 7c4415
      {
Karsten Hopp 7c4415
  	clearop(oap);
Karsten Hopp 7c4415
  #ifdef FEAT_EVAL
Karsten Hopp 7c4415
! 	set_reg_var('"');
Karsten Hopp 7c4415
  #endif
Karsten Hopp 7c4415
      }
Karsten Hopp 7c4415
  
Karsten Hopp 7c4415
--- 1202,1214 ----
Karsten Hopp 7c4415
      {
Karsten Hopp 7c4415
  	clearop(oap);
Karsten Hopp 7c4415
  #ifdef FEAT_EVAL
Karsten Hopp 7c4415
! 	{
Karsten Hopp 7c4415
! 	    int regname = 0;
Karsten Hopp 7c4415
! 	    /* Adjust the register according to 'clipboard', so that when
Karsten Hopp 7c4415
! 	     * "unnamed" is present it becomes '*' or '+' instead of '"'. */
Karsten Hopp 7c4415
! 	    adjust_clip_reg(&regname);
Karsten Hopp 7c4415
! 	    set_reg_var(regname);
Karsten Hopp 7c4415
! 	}
Karsten Hopp 7c4415
  #endif
Karsten Hopp 7c4415
      }
Karsten Hopp 7c4415
  
Karsten Hopp 7c4415
*** ../vim-7.3.185/src/version.c	2011-05-10 16:00:43.000000000 +0200
Karsten Hopp 7c4415
--- src/version.c	2011-05-10 16:10:10.000000000 +0200
Karsten Hopp 7c4415
***************
Karsten Hopp 7c4415
*** 716,717 ****
Karsten Hopp 7c4415
--- 716,719 ----
Karsten Hopp 7c4415
  {   /* Add new patch number below this line */
Karsten Hopp 7c4415
+ /**/
Karsten Hopp 7c4415
+     186,
Karsten Hopp 7c4415
  /**/
Karsten Hopp 7c4415
Karsten Hopp 7c4415
-- 
Karsten Hopp 7c4415
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 7c4415
80. At parties, you introduce your spouse as your "service provider."
Karsten Hopp 7c4415
Karsten Hopp 7c4415
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 7c4415
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 7c4415
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 7c4415
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///