Blame SOURCES/7.4.454

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