3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.454
3ef2ca
Fcc: outbox
3ef2ca
From: Bram Moolenaar <Bram@moolenaar.net>
3ef2ca
Mime-Version: 1.0
3ef2ca
Content-Type: text/plain; charset=UTF-8
3ef2ca
Content-Transfer-Encoding: 8bit
3ef2ca
------------
3ef2ca
3ef2ca
Patch 7.4.454
3ef2ca
Problem:    When using a Visual selection of multiple words and doing CTRL-W_]
3ef2ca
	    it jumps to the tag matching the word under the cursor, not the
3ef2ca
	    selected text.  (Patrick hemmer)
3ef2ca
Solution:   Do not reset Visual mode. (idea by Christian Brabandt)
3ef2ca
Files:	    src/window.c
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.453/src/window.c	2014-09-19 14:26:29.658405000 +0200
3ef2ca
--- src/window.c	2014-09-23 13:34:12.722783903 +0200
3ef2ca
***************
3ef2ca
*** 479,492 ****
3ef2ca
      case ']':
3ef2ca
      case Ctrl_RSB:
3ef2ca
  		CHECK_CMDWIN
3ef2ca
! 		reset_VIsual_and_resel();	/* stop Visual mode */
3ef2ca
  		if (Prenum)
3ef2ca
  		    postponed_split = Prenum;
3ef2ca
  		else
3ef2ca
  		    postponed_split = -1;
3ef2ca
  
3ef2ca
! 		/* Execute the command right here, required when
3ef2ca
! 		 * "wincmd ]" was used in a function. */
3ef2ca
  		do_nv_ident(Ctrl_RSB, NUL);
3ef2ca
  		break;
3ef2ca
  
3ef2ca
--- 479,493 ----
3ef2ca
      case ']':
3ef2ca
      case Ctrl_RSB:
3ef2ca
  		CHECK_CMDWIN
3ef2ca
! 		/* keep Visual mode, can select words to use as a tag */
3ef2ca
  		if (Prenum)
3ef2ca
  		    postponed_split = Prenum;
3ef2ca
  		else
3ef2ca
  		    postponed_split = -1;
3ef2ca
+ 		g_do_tagpreview = 0;
3ef2ca
  
3ef2ca
! 		/* Execute the command right here, required when "wincmd ]"
3ef2ca
! 		 * was used in a function. */
3ef2ca
  		do_nv_ident(Ctrl_RSB, NUL);
3ef2ca
  		break;
3ef2ca
  
3ef2ca
***************
3ef2ca
*** 590,596 ****
3ef2ca
  #endif
3ef2ca
  		    case ']':
3ef2ca
  		    case Ctrl_RSB:
3ef2ca
! 			reset_VIsual_and_resel();	/* stop Visual mode */
3ef2ca
  			if (Prenum)
3ef2ca
  			    postponed_split = Prenum;
3ef2ca
  			else
3ef2ca
--- 591,597 ----
3ef2ca
  #endif
3ef2ca
  		    case ']':
3ef2ca
  		    case Ctrl_RSB:
3ef2ca
! 			/* keep Visual mode, can select words to use as a tag */
3ef2ca
  			if (Prenum)
3ef2ca
  			    postponed_split = Prenum;
3ef2ca
  			else
3ef2ca
*** ../vim-7.4.453/src/version.c	2014-09-19 22:23:22.398467500 +0200
3ef2ca
--- src/version.c	2014-09-23 13:36:18.550784178 +0200
3ef2ca
***************
3ef2ca
*** 743,744 ****
3ef2ca
--- 743,746 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     454,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
hundred-and-one symptoms of being an internet addict:
3ef2ca
175. You send yourself e-mail before you go to bed to remind you
3ef2ca
     what to do when you wake up.
3ef2ca
3ef2ca
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
3ef2ca
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
3ef2ca
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
3ef2ca
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///