Karsten Hopp c8dc3d
To: vim-dev@vim.org
Karsten Hopp c8dc3d
Subject: Patch 7.1.150
Karsten Hopp c8dc3d
Fcc: outbox
Karsten Hopp c8dc3d
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp c8dc3d
Mime-Version: 1.0
Karsten Hopp c8dc3d
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp c8dc3d
Content-Transfer-Encoding: 8bit
Karsten Hopp c8dc3d
------------
Karsten Hopp c8dc3d
Karsten Hopp c8dc3d
Patch 7.1.150
Karsten Hopp c8dc3d
Problem:    When 'clipboard' has "unnamed" using "p" in Visual mode doesn't
Karsten Hopp c8dc3d
	    work correctly. (Jianrong Yu)
Karsten Hopp c8dc3d
Solution:   When 'clipboard' has "unnamed" also obtain the selection when
Karsten Hopp c8dc3d
	    getting the default register.
Karsten Hopp c8dc3d
Files:	    src/ops.c
Karsten Hopp c8dc3d
Karsten Hopp c8dc3d
Karsten Hopp c8dc3d
*** ../vim-7.1.149/src/ops.c	Tue Sep 25 14:19:35 2007
Karsten Hopp c8dc3d
--- src/ops.c	Sun Oct 28 13:58:35 2007
Karsten Hopp c8dc3d
***************
Karsten Hopp c8dc3d
*** 933,941 ****
Karsten Hopp c8dc3d
  #ifdef FEAT_CLIPBOARD
Karsten Hopp c8dc3d
      /* When Visual area changed, may have to update selection.  Obtain the
Karsten Hopp c8dc3d
       * selection too. */
Karsten Hopp c8dc3d
!     if (name == '*' && clip_star.available && clip_isautosel())
Karsten Hopp c8dc3d
      {
Karsten Hopp c8dc3d
! 	clip_update_selection();
Karsten Hopp c8dc3d
  	may_get_selection(name);
Karsten Hopp c8dc3d
      }
Karsten Hopp c8dc3d
  #endif
Karsten Hopp c8dc3d
--- 933,942 ----
Karsten Hopp c8dc3d
  #ifdef FEAT_CLIPBOARD
Karsten Hopp c8dc3d
      /* When Visual area changed, may have to update selection.  Obtain the
Karsten Hopp c8dc3d
       * selection too. */
Karsten Hopp c8dc3d
!     if (name == '*' && clip_star.available)
Karsten Hopp c8dc3d
      {
Karsten Hopp c8dc3d
! 	if (clip_isautosel())
Karsten Hopp c8dc3d
! 	    clip_update_selection();
Karsten Hopp c8dc3d
  	may_get_selection(name);
Karsten Hopp c8dc3d
      }
Karsten Hopp c8dc3d
  #endif
Karsten Hopp c8dc3d
*** ../vim-7.1.149/src/version.c	Tue Nov  6 22:26:39 2007
Karsten Hopp c8dc3d
--- src/version.c	Thu Nov  8 10:34:18 2007
Karsten Hopp c8dc3d
***************
Karsten Hopp c8dc3d
*** 668,669 ****
Karsten Hopp c8dc3d
--- 668,671 ----
Karsten Hopp c8dc3d
  {   /* Add new patch number below this line */
Karsten Hopp c8dc3d
+ /**/
Karsten Hopp c8dc3d
+     150,
Karsten Hopp c8dc3d
  /**/
Karsten Hopp c8dc3d
Karsten Hopp c8dc3d
-- 
Karsten Hopp c8dc3d
From "know your smileys":
Karsten Hopp c8dc3d
 8<}}	Glasses, big nose, beard
Karsten Hopp c8dc3d
Karsten Hopp c8dc3d
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp c8dc3d
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp c8dc3d
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp c8dc3d
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///