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