Karsten Hopp b66587
To: vim_dev@googlegroups.com
Karsten Hopp b66587
Subject: Patch 7.3.235
Karsten Hopp b66587
Fcc: outbox
Karsten Hopp b66587
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp b66587
Mime-Version: 1.0
Karsten Hopp b66587
Content-Type: text/plain; charset=UTF-8
Karsten Hopp b66587
Content-Transfer-Encoding: 8bit
Karsten Hopp b66587
------------
Karsten Hopp b66587
Karsten Hopp b66587
Patch 7.3.235
Karsten Hopp b66587
Problem:    ";" gets stuck on a "t" command, it's not useful.
Karsten Hopp b66587
Solution:   Add the ';' flag in 'cpo'. (Christian Brabandt)
Karsten Hopp b66587
Files:      runtime/doc/motion.txt, runtime/doc/options.txt, src/option.h,
Karsten Hopp b66587
            src/search.c src/testdir/test81.in, src/testdir/test81.ok,
Karsten Hopp b66587
            src/testdir/Makefile, src/testdir/Make_amiga.mak,
Karsten Hopp b66587
            src/testdir/Make_dos.mak, src/testdir/Make_ming.mak,
Karsten Hopp b66587
            src/testdir/Make_os2.mak, src/testdir/Make_vms.mms
Karsten Hopp b66587
Karsten Hopp b66587
Karsten Hopp b66587
*** ../vim-7.3.234/runtime/doc/motion.txt	2010-08-15 21:57:17.000000000 +0200
Karsten Hopp b66587
--- runtime/doc/motion.txt	2011-06-26 05:15:58.000000000 +0200
Karsten Hopp b66587
***************
Karsten Hopp b66587
*** 269,279 ****
Karsten Hopp b66587
  			{char} can be entered like with the |f| command.
Karsten Hopp b66587
  
Karsten Hopp b66587
  							*;*
Karsten Hopp b66587
! ;			Repeat latest f, t, F or T [count] times.
Karsten Hopp b66587
  
Karsten Hopp b66587
  							*,*
Karsten Hopp b66587
  ,			Repeat latest f, t, F or T in opposite direction
Karsten Hopp b66587
! 			[count] times.
Karsten Hopp b66587
  
Karsten Hopp b66587
  ==============================================================================
Karsten Hopp b66587
  3. Up-down motions					*up-down-motions*
Karsten Hopp b66587
--- 269,279 ----
Karsten Hopp b66587
  			{char} can be entered like with the |f| command.
Karsten Hopp b66587
  
Karsten Hopp b66587
  							*;*
Karsten Hopp b66587
! ;			Repeat latest f, t, F or T [count] times. See |cpo-;|
Karsten Hopp b66587
  
Karsten Hopp b66587
  							*,*
Karsten Hopp b66587
  ,			Repeat latest f, t, F or T in opposite direction
Karsten Hopp b66587
! 			[count] times. See also |cpo-;|
Karsten Hopp b66587
  
Karsten Hopp b66587
  ==============================================================================
Karsten Hopp b66587
  3. Up-down motions					*up-down-motions*
Karsten Hopp b66587
*** ../vim-7.3.234/runtime/doc/options.txt	2011-06-12 20:42:17.000000000 +0200
Karsten Hopp b66587
--- runtime/doc/options.txt	2011-06-26 05:15:58.000000000 +0200
Karsten Hopp b66587
***************
Karsten Hopp b66587
*** 2090,2095 ****
Karsten Hopp b66587
--- 2117,2128 ----
Karsten Hopp b66587
  								*cpo->*
Karsten Hopp b66587
  		>	When appending to a register, put a line break before
Karsten Hopp b66587
  			the appended text.
Karsten Hopp b66587
+ 								*cpo-;*
Karsten Hopp b66587
+ 		;	When using |,| or |;| to repeat the last |t| search
Karsten Hopp b66587
+ 			and the cursor is right in front of the searched
Karsten Hopp b66587
+ 			character, the cursor won't move. When not included,
Karsten Hopp b66587
+ 			the cursor would skip over it and jump to the
Karsten Hopp b66587
+ 			following occurence.
Karsten Hopp b66587
  
Karsten Hopp b66587
  	POSIX flags.  These are not included in the Vi default value, except
Karsten Hopp b66587
  	when $VIM_POSIX was set on startup. |posix|
Karsten Hopp b66587
*** ../vim-7.3.234/src/option.h	2011-06-12 22:13:37.000000000 +0200
Karsten Hopp b66587
--- src/option.h	2011-06-26 05:17:58.000000000 +0200
Karsten Hopp b66587
***************
Karsten Hopp b66587
*** 169,178 ****
Karsten Hopp b66587
  #define CPO_SUBPERCENT	'/'	/* % in :s string uses previous one */
Karsten Hopp b66587
  #define CPO_BACKSL	'\\'	/* \ is not special in [] */
Karsten Hopp b66587
  #define CPO_CHDIR	'.'	/* don't chdir if buffer is modified */
Karsten Hopp b66587
  /* default values for Vim, Vi and POSIX */
Karsten Hopp b66587
  #define CPO_VIM		"aABceFs"
Karsten Hopp b66587
! #define CPO_VI		"aAbBcCdDeEfFgHiIjJkKlLmMnoOpPqrRsStuvwWxXyZ$!%*-+<>"
Karsten Hopp b66587
! #define CPO_ALL		"aAbBcCdDeEfFgHiIjJkKlLmMnoOpPqrRsStuvwWxXyZ$!%*-+<>#{|&/\\."
Karsten Hopp b66587
  
Karsten Hopp b66587
  /* characters for p_ww option: */
Karsten Hopp b66587
  #define WW_ALL		"bshl<>[],~"
Karsten Hopp b66587
--- 169,180 ----
Karsten Hopp b66587
  #define CPO_SUBPERCENT	'/'	/* % in :s string uses previous one */
Karsten Hopp b66587
  #define CPO_BACKSL	'\\'	/* \ is not special in [] */
Karsten Hopp b66587
  #define CPO_CHDIR	'.'	/* don't chdir if buffer is modified */
Karsten Hopp b66587
+ #define CPO_SCOLON	';'	/* using "," and ";" will skip over char if
Karsten Hopp b66587
+ 				 * cursor would not move */
Karsten Hopp b66587
  /* default values for Vim, Vi and POSIX */
Karsten Hopp b66587
  #define CPO_VIM		"aABceFs"
Karsten Hopp b66587
! #define CPO_VI		"aAbBcCdDeEfFgHiIjJkKlLmMnoOpPqrRsStuvwWxXyZ$!%*-+<>;"
Karsten Hopp b66587
! #define CPO_ALL		"aAbBcCdDeEfFgHiIjJkKlLmMnoOpPqrRsStuvwWxXyZ$!%*-+<>#{|&/\\.;"
Karsten Hopp b66587
  
Karsten Hopp b66587
  /* characters for p_ww option: */
Karsten Hopp b66587
  #define WW_ALL		"bshl<>[],~"
Karsten Hopp b66587
*** ../vim-7.3.234/src/search.c	2011-05-10 16:41:13.000000000 +0200
Karsten Hopp b66587
--- src/search.c	2011-06-26 05:20:45.000000000 +0200
Karsten Hopp b66587
***************
Karsten Hopp b66587
*** 1546,1551 ****
Karsten Hopp b66587
--- 1546,1552 ----
Karsten Hopp b66587
      int			col;
Karsten Hopp b66587
      char_u		*p;
Karsten Hopp b66587
      int			len;
Karsten Hopp b66587
+     int			stop = TRUE;
Karsten Hopp b66587
  #ifdef FEAT_MBYTE
Karsten Hopp b66587
      static char_u	bytes[MB_MAXBYTES];
Karsten Hopp b66587
      static int		bytelen = 1;	/* >1 for multi-byte char */
Karsten Hopp b66587
***************
Karsten Hopp b66587
*** 1580,1585 ****
Karsten Hopp b66587
--- 1581,1592 ----
Karsten Hopp b66587
  	t_cmd = last_t_cmd;
Karsten Hopp b66587
  	c = lastc;
Karsten Hopp b66587
  	/* For multi-byte re-use last bytes[] and bytelen. */
Karsten Hopp b66587
+ 
Karsten Hopp b66587
+ 	/* Force a move of at least one char, so ";" and "," will move the
Karsten Hopp b66587
+ 	 * cursor, even if the cursor is right in front of char we are looking
Karsten Hopp b66587
+ 	 * at. */
Karsten Hopp b66587
+ 	if (vim_strchr(p_cpo, CPO_SCOLON) == NULL && count == 1)
Karsten Hopp b66587
+ 	    stop = FALSE;
Karsten Hopp b66587
      }
Karsten Hopp b66587
  
Karsten Hopp b66587
      if (dir == BACKWARD)
Karsten Hopp b66587
***************
Karsten Hopp b66587
*** 1612,1625 ****
Karsten Hopp b66587
  		}
Karsten Hopp b66587
  		if (bytelen == 1)
Karsten Hopp b66587
  		{
Karsten Hopp b66587
! 		    if (p[col] == c)
Karsten Hopp b66587
  			break;
Karsten Hopp b66587
  		}
Karsten Hopp b66587
  		else
Karsten Hopp b66587
  		{
Karsten Hopp b66587
! 		    if (vim_memcmp(p + col, bytes, bytelen) == 0)
Karsten Hopp b66587
  			break;
Karsten Hopp b66587
  		}
Karsten Hopp b66587
  	    }
Karsten Hopp b66587
  	}
Karsten Hopp b66587
  	else
Karsten Hopp b66587
--- 1619,1633 ----
Karsten Hopp b66587
  		}
Karsten Hopp b66587
  		if (bytelen == 1)
Karsten Hopp b66587
  		{
Karsten Hopp b66587
! 		    if (p[col] == c && stop)
Karsten Hopp b66587
  			break;
Karsten Hopp b66587
  		}
Karsten Hopp b66587
  		else
Karsten Hopp b66587
  		{
Karsten Hopp b66587
! 		    if (vim_memcmp(p + col, bytes, bytelen) == 0 && stop)
Karsten Hopp b66587
  			break;
Karsten Hopp b66587
  		}
Karsten Hopp b66587
+ 		stop = TRUE;
Karsten Hopp b66587
  	    }
Karsten Hopp b66587
  	}
Karsten Hopp b66587
  	else
Karsten Hopp b66587
***************
Karsten Hopp b66587
*** 1629,1636 ****
Karsten Hopp b66587
  	    {
Karsten Hopp b66587
  		if ((col += dir) < 0 || col >= len)
Karsten Hopp b66587
  		    return FAIL;
Karsten Hopp b66587
! 		if (p[col] == c)
Karsten Hopp b66587
  		    break;
Karsten Hopp b66587
  	    }
Karsten Hopp b66587
  	}
Karsten Hopp b66587
      }
Karsten Hopp b66587
--- 1637,1645 ----
Karsten Hopp b66587
  	    {
Karsten Hopp b66587
  		if ((col += dir) < 0 || col >= len)
Karsten Hopp b66587
  		    return FAIL;
Karsten Hopp b66587
! 		if (p[col] == c && stop)
Karsten Hopp b66587
  		    break;
Karsten Hopp b66587
+ 		stop = TRUE;
Karsten Hopp b66587
  	    }
Karsten Hopp b66587
  	}
Karsten Hopp b66587
      }
Karsten Hopp b66587
*** ../vim-7.3.234/src/testdir/test81.in	2011-06-26 05:34:33.000000000 +0200
Karsten Hopp b66587
--- src/testdir/test81.in	2011-06-26 05:30:31.000000000 +0200
Karsten Hopp b66587
***************
Karsten Hopp b66587
*** 0 ****
Karsten Hopp b66587
--- 1,18 ----
Karsten Hopp b66587
+ Test for t movement command and 'cpo-;' setting
Karsten Hopp b66587
+ 
Karsten Hopp b66587
+ STARTTEST
Karsten Hopp b66587
+ :set nocompatible
Karsten Hopp b66587
+ :set cpo-=;
Karsten Hopp b66587
+ /firstline/
Karsten Hopp b66587
+ j0tt;D
Karsten Hopp b66587
+ $Ty;D:set cpo+=;
Karsten Hopp b66587
+ j0tt;;D
Karsten Hopp b66587
+ $Ty;;D:?firstline?+1,$w! test.out
Karsten Hopp b66587
+ :qa!
Karsten Hopp b66587
+ ENDTEST
Karsten Hopp b66587
+ 
Karsten Hopp b66587
+ firstline
Karsten Hopp b66587
+ aaa two three four
Karsten Hopp b66587
+ bbb yee yoo four
Karsten Hopp b66587
+ ccc two three four
Karsten Hopp b66587
+ ddd yee yoo four
Karsten Hopp b66587
*** ../vim-7.3.234/src/testdir/test81.ok	2011-06-26 05:34:33.000000000 +0200
Karsten Hopp b66587
--- src/testdir/test81.ok	2011-06-26 05:31:33.000000000 +0200
Karsten Hopp b66587
***************
Karsten Hopp b66587
*** 0 ****
Karsten Hopp b66587
--- 1,4 ----
Karsten Hopp b66587
+ aaa two
Karsten Hopp b66587
+ bbb y
Karsten Hopp b66587
+ ccc
Karsten Hopp b66587
+ ddd yee y
Karsten Hopp b66587
*** ../vim-7.3.234/src/testdir/Makefile	2011-06-19 04:31:54.000000000 +0200
Karsten Hopp b66587
--- src/testdir/Makefile	2011-06-26 05:09:56.000000000 +0200
Karsten Hopp b66587
***************
Karsten Hopp b66587
*** 26,32 ****
Karsten Hopp b66587
  		test64.out test65.out test66.out test67.out test68.out \
Karsten Hopp b66587
  		test69.out test70.out test71.out test72.out test73.out \
Karsten Hopp b66587
  		test74.out test75.out test76.out test77.out test78.out \
Karsten Hopp b66587
! 		test79.out test80.out
Karsten Hopp b66587
  
Karsten Hopp b66587
  SCRIPTS_GUI = test16.out
Karsten Hopp b66587
  
Karsten Hopp b66587
--- 26,32 ----
Karsten Hopp b66587
  		test64.out test65.out test66.out test67.out test68.out \
Karsten Hopp b66587
  		test69.out test70.out test71.out test72.out test73.out \
Karsten Hopp b66587
  		test74.out test75.out test76.out test77.out test78.out \
Karsten Hopp b66587
! 		test79.out test80.out test81.out
Karsten Hopp b66587
  
Karsten Hopp b66587
  SCRIPTS_GUI = test16.out
Karsten Hopp b66587
  
Karsten Hopp b66587
*** ../vim-7.3.234/src/testdir/Make_amiga.mak	2011-06-19 04:31:54.000000000 +0200
Karsten Hopp b66587
--- src/testdir/Make_amiga.mak	2011-06-26 05:09:07.000000000 +0200
Karsten Hopp b66587
***************
Karsten Hopp b66587
*** 28,34 ****
Karsten Hopp b66587
  		test61.out test62.out test63.out test64.out test65.out \
Karsten Hopp b66587
  		test66.out test67.out test68.out test69.out test70.out \
Karsten Hopp b66587
  		test71.out test72.out test73.out test74.out test75.out \
Karsten Hopp b66587
! 		test76.out test77.out test78.out test79.out test80.out
Karsten Hopp b66587
  
Karsten Hopp b66587
  .SUFFIXES: .in .out
Karsten Hopp b66587
  
Karsten Hopp b66587
--- 28,35 ----
Karsten Hopp b66587
  		test61.out test62.out test63.out test64.out test65.out \
Karsten Hopp b66587
  		test66.out test67.out test68.out test69.out test70.out \
Karsten Hopp b66587
  		test71.out test72.out test73.out test74.out test75.out \
Karsten Hopp b66587
! 		test76.out test77.out test78.out test79.out test80.out \
Karsten Hopp b66587
! 		test81.out
Karsten Hopp b66587
  
Karsten Hopp b66587
  .SUFFIXES: .in .out
Karsten Hopp b66587
  
Karsten Hopp b66587
***************
Karsten Hopp b66587
*** 128,130 ****
Karsten Hopp b66587
--- 129,132 ----
Karsten Hopp b66587
  test78.out: test78.in
Karsten Hopp b66587
  test79.out: test79.in
Karsten Hopp b66587
  test80.out: test80.in
Karsten Hopp b66587
+ test81.out: test81.in
Karsten Hopp b66587
*** ../vim-7.3.234/src/testdir/Make_dos.mak	2011-06-19 04:31:54.000000000 +0200
Karsten Hopp b66587
--- src/testdir/Make_dos.mak	2011-06-26 05:09:16.000000000 +0200
Karsten Hopp b66587
***************
Karsten Hopp b66587
*** 29,35 ****
Karsten Hopp b66587
  		test42.out test52.out test65.out test66.out test67.out \
Karsten Hopp b66587
  		test68.out test69.out test71.out test72.out test73.out \
Karsten Hopp b66587
  		test74.out test75.out test76.out test77.out test78.out \
Karsten Hopp b66587
! 		test79.out test80.out
Karsten Hopp b66587
  
Karsten Hopp b66587
  SCRIPTS32 =	test50.out test70.out
Karsten Hopp b66587
  
Karsten Hopp b66587
--- 29,35 ----
Karsten Hopp b66587
  		test42.out test52.out test65.out test66.out test67.out \
Karsten Hopp b66587
  		test68.out test69.out test71.out test72.out test73.out \
Karsten Hopp b66587
  		test74.out test75.out test76.out test77.out test78.out \
Karsten Hopp b66587
! 		test79.out test80.out test81.out
Karsten Hopp b66587
  
Karsten Hopp b66587
  SCRIPTS32 =	test50.out test70.out
Karsten Hopp b66587
  
Karsten Hopp b66587
*** ../vim-7.3.234/src/testdir/Make_ming.mak	2011-06-19 04:31:54.000000000 +0200
Karsten Hopp b66587
--- src/testdir/Make_ming.mak	2011-06-26 05:09:24.000000000 +0200
Karsten Hopp b66587
***************
Karsten Hopp b66587
*** 49,55 ****
Karsten Hopp b66587
  		test42.out test52.out test65.out test66.out test67.out \
Karsten Hopp b66587
  		test68.out test69.out test71.out test72.out test73.out \
Karsten Hopp b66587
  		test74.out test75.out test76.out test77.out test78.out \
Karsten Hopp b66587
! 		test79.out test80.out
Karsten Hopp b66587
  
Karsten Hopp b66587
  SCRIPTS32 =	test50.out test70.out
Karsten Hopp b66587
  
Karsten Hopp b66587
--- 49,55 ----
Karsten Hopp b66587
  		test42.out test52.out test65.out test66.out test67.out \
Karsten Hopp b66587
  		test68.out test69.out test71.out test72.out test73.out \
Karsten Hopp b66587
  		test74.out test75.out test76.out test77.out test78.out \
Karsten Hopp b66587
! 		test79.out test80.out test81.out
Karsten Hopp b66587
  
Karsten Hopp b66587
  SCRIPTS32 =	test50.out test70.out
Karsten Hopp b66587
  
Karsten Hopp b66587
*** ../vim-7.3.234/src/testdir/Make_os2.mak	2011-06-19 04:31:54.000000000 +0200
Karsten Hopp b66587
--- src/testdir/Make_os2.mak	2011-06-26 05:09:33.000000000 +0200
Karsten Hopp b66587
***************
Karsten Hopp b66587
*** 28,34 ****
Karsten Hopp b66587
  		test61.out test62.out test63.out test64.out test65.out \
Karsten Hopp b66587
  		test66.out test67.out test68.out test69.out test70.out \
Karsten Hopp b66587
  		test71.out test72.out test73.out test74.out test75.out \
Karsten Hopp b66587
! 		test76.out test77.out test78.out test79.out test80.out
Karsten Hopp b66587
  
Karsten Hopp b66587
  .SUFFIXES: .in .out
Karsten Hopp b66587
  
Karsten Hopp b66587
--- 28,35 ----
Karsten Hopp b66587
  		test61.out test62.out test63.out test64.out test65.out \
Karsten Hopp b66587
  		test66.out test67.out test68.out test69.out test70.out \
Karsten Hopp b66587
  		test71.out test72.out test73.out test74.out test75.out \
Karsten Hopp b66587
! 		test76.out test77.out test78.out test79.out test80.out \
Karsten Hopp b66587
! 		test81.out
Karsten Hopp b66587
  
Karsten Hopp b66587
  .SUFFIXES: .in .out
Karsten Hopp b66587
  
Karsten Hopp b66587
*** ../vim-7.3.234/src/testdir/Make_vms.mms	2011-06-19 04:31:54.000000000 +0200
Karsten Hopp b66587
--- src/testdir/Make_vms.mms	2011-06-26 05:09:42.000000000 +0200
Karsten Hopp b66587
***************
Karsten Hopp b66587
*** 4,10 ****
Karsten Hopp b66587
  # Authors:	Zoltan Arpadffy, <arpadffy@polarhome.com>
Karsten Hopp b66587
  #		Sandor Kopanyi,  <sandor.kopanyi@mailbox.hu>
Karsten Hopp b66587
  #
Karsten Hopp b66587
! # Last change:  2011 Jun 19
Karsten Hopp b66587
  #
Karsten Hopp b66587
  # This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
Karsten Hopp b66587
  # Edit the lines in the Configuration section below to select.
Karsten Hopp b66587
--- 4,10 ----
Karsten Hopp b66587
  # Authors:	Zoltan Arpadffy, <arpadffy@polarhome.com>
Karsten Hopp b66587
  #		Sandor Kopanyi,  <sandor.kopanyi@mailbox.hu>
Karsten Hopp b66587
  #
Karsten Hopp b66587
! # Last change:  2011 Jun 26
Karsten Hopp b66587
  #
Karsten Hopp b66587
  # This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
Karsten Hopp b66587
  # Edit the lines in the Configuration section below to select.
Karsten Hopp b66587
***************
Karsten Hopp b66587
*** 75,81 ****
Karsten Hopp b66587
  	 test61.out test62.out test63.out test64.out test65.out \
Karsten Hopp b66587
  	 test66.out test67.out test68.out test69.out \
Karsten Hopp b66587
  	 test71.out test72.out test74.out test75.out test76.out \
Karsten Hopp b66587
! 	 test77.out test78.out test79.out test80.out
Karsten Hopp b66587
  
Karsten Hopp b66587
  # Known problems:
Karsten Hopp b66587
  # Test 30: a problem around mac format - unknown reason
Karsten Hopp b66587
--- 75,81 ----
Karsten Hopp b66587
  	 test61.out test62.out test63.out test64.out test65.out \
Karsten Hopp b66587
  	 test66.out test67.out test68.out test69.out \
Karsten Hopp b66587
  	 test71.out test72.out test74.out test75.out test76.out \
Karsten Hopp b66587
! 	 test77.out test78.out test79.out test80.out test81.out
Karsten Hopp b66587
  
Karsten Hopp b66587
  # Known problems:
Karsten Hopp b66587
  # Test 30: a problem around mac format - unknown reason
Karsten Hopp b66587
*** ../vim-7.3.234/src/version.c	2011-06-26 04:48:56.000000000 +0200
Karsten Hopp b66587
--- src/version.c	2011-06-26 05:33:53.000000000 +0200
Karsten Hopp b66587
***************
Karsten Hopp b66587
*** 711,712 ****
Karsten Hopp b66587
--- 711,714 ----
Karsten Hopp b66587
  {   /* Add new patch number below this line */
Karsten Hopp b66587
+ /**/
Karsten Hopp b66587
+     235,
Karsten Hopp b66587
  /**/
Karsten Hopp b66587
Karsten Hopp b66587
-- 
Karsten Hopp b66587
hundred-and-one symptoms of being an internet addict:
Karsten Hopp b66587
226. You sit down at the computer right after dinner and your spouse
Karsten Hopp b66587
     says "See you in the morning."
Karsten Hopp b66587
Karsten Hopp b66587
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp b66587
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp b66587
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp b66587
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///