Karsten Hopp 9fcb8d
To: vim_dev@googlegroups.com
Karsten Hopp 9fcb8d
Subject: Patch 7.3.748
Karsten Hopp 9fcb8d
Fcc: outbox
Karsten Hopp 9fcb8d
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 9fcb8d
Mime-Version: 1.0
Karsten Hopp 9fcb8d
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 9fcb8d
Content-Transfer-Encoding: 8bit
Karsten Hopp 9fcb8d
------------
Karsten Hopp 9fcb8d
Karsten Hopp 9fcb8d
Patch 7.3.748
Karsten Hopp 9fcb8d
Problem:    Cannot properly test conceal mode.
Karsten Hopp 9fcb8d
Solution:   Add the screencol() and screenrow() functions.  Use them in
Karsten Hopp 9fcb8d
	    test88. (Simon Ruderich)
Karsten Hopp 9fcb8d
Files:	    runtime/doc/eval.txt, src/eval.c, src/proto/screen.pro,
Karsten Hopp 9fcb8d
	    src/screen.c, src/testdir/Make_amiga.mak,
Karsten Hopp 9fcb8d
	    src/testdir/Make_dos.mak, src/testdir/Make_ming.mak,
Karsten Hopp 9fcb8d
	    src/testdir/Make_os2.mak, src/testdir/Make_vms.mms
Karsten Hopp 9fcb8d
	    src/testdir/Makefile, src/testdir/test88.in,
Karsten Hopp 9fcb8d
	    src/testdir/test88.ok
Karsten Hopp 9fcb8d
Karsten Hopp 9fcb8d
Karsten Hopp 9fcb8d
*** ../vim-7.3.747/runtime/doc/eval.txt	2012-11-14 18:10:49.000000000 +0100
Karsten Hopp 9fcb8d
--- runtime/doc/eval.txt	2012-12-05 15:45:34.000000000 +0100
Karsten Hopp 9fcb8d
***************
Karsten Hopp 9fcb8d
*** 1892,1897 ****
Karsten Hopp 9fcb8d
--- 1903,1910 ----
Karsten Hopp 9fcb8d
  resolve( {filename})		String	get filename a shortcut points to
Karsten Hopp 9fcb8d
  reverse( {list})		List	reverse {list} in-place
Karsten Hopp 9fcb8d
  round( {expr})			Float	round off {expr}
Karsten Hopp 9fcb8d
+ screencol()			Number	current cursor column
Karsten Hopp 9fcb8d
+ screenrow()			Number	current cursor row
Karsten Hopp 9fcb8d
  search( {pattern} [, {flags} [, {stopline} [, {timeout}]]])
Karsten Hopp 9fcb8d
  				Number	search for {pattern}
Karsten Hopp 9fcb8d
  searchdecl( {name} [, {global} [, {thisblock}]])
Karsten Hopp 9fcb8d
***************
Karsten Hopp 9fcb8d
*** 4848,4862 ****
Karsten Hopp 9fcb8d
  			echo round(-4.5)
Karsten Hopp 9fcb8d
  <			-5.0
Karsten Hopp 9fcb8d
  		{only available when compiled with the |+float| feature}
Karsten Hopp 9fcb8d
! 		
Karsten Hopp 9fcb8d
! 		
Karsten Hopp 9fcb8d
  search({pattern} [, {flags} [, {stopline} [, {timeout}]]])	*search()*
Karsten Hopp 9fcb8d
  		Search for regexp pattern {pattern}.  The search starts at the
Karsten Hopp 9fcb8d
  		cursor position (you can use |cursor()| to set it).
Karsten Hopp 9fcb8d
  
Karsten Hopp 9fcb8d
  		If there is no match a 0 is returned and the cursor doesn't
Karsten Hopp 9fcb8d
  		move.  No error message is given.
Karsten Hopp 9fcb8d
- 		When a match has been found its line number is returned.
Karsten Hopp 9fcb8d
  
Karsten Hopp 9fcb8d
  		{flags} is a String, which can contain these character flags:
Karsten Hopp 9fcb8d
  		'b'	search backward instead of forward
Karsten Hopp 9fcb8d
--- 4874,4907 ----
Karsten Hopp 9fcb8d
  			echo round(-4.5)
Karsten Hopp 9fcb8d
  <			-5.0
Karsten Hopp 9fcb8d
  		{only available when compiled with the |+float| feature}
Karsten Hopp 9fcb8d
! 
Karsten Hopp 9fcb8d
! screencol()							*screencol()*
Karsten Hopp 9fcb8d
! 		The result is a Number, which is the current screen column of
Karsten Hopp 9fcb8d
! 		the cursor. The leftmost column has number 1.
Karsten Hopp 9fcb8d
! 		This function is mainly used for testing.
Karsten Hopp 9fcb8d
! 
Karsten Hopp 9fcb8d
! 		Note: Always returns the current screen column, thus if used
Karsten Hopp 9fcb8d
! 		in a command (e.g. ":echo screencol()") it will return the
Karsten Hopp 9fcb8d
! 		column inside the command line, which is 1 when the command is
Karsten Hopp 9fcb8d
! 		executed. To get the cursor position in the file use one of
Karsten Hopp 9fcb8d
! 		the following mappings: >
Karsten Hopp 9fcb8d
! 			nnoremap <expr> GG ":echom ".screencol()."\n"
Karsten Hopp 9fcb8d
! 			nnoremap <silent> GG :echom screencol()<CR>
Karsten Hopp 9fcb8d
! <
Karsten Hopp 9fcb8d
! screenrow()							*screenrow()*
Karsten Hopp 9fcb8d
! 		The result is a Number, which is the current screen row of the
Karsten Hopp 9fcb8d
! 		cursor.  The top line has number one.
Karsten Hopp 9fcb8d
! 		This function is mainly used for testing.
Karsten Hopp 9fcb8d
! 
Karsten Hopp 9fcb8d
! 		Note: Same restrictions as with |screencol()|.
Karsten Hopp 9fcb8d
! 
Karsten Hopp 9fcb8d
  search({pattern} [, {flags} [, {stopline} [, {timeout}]]])	*search()*
Karsten Hopp 9fcb8d
  		Search for regexp pattern {pattern}.  The search starts at the
Karsten Hopp 9fcb8d
  		cursor position (you can use |cursor()| to set it).
Karsten Hopp 9fcb8d
  
Karsten Hopp 9fcb8d
+ 		When a match has been found its line number is returned.
Karsten Hopp 9fcb8d
  		If there is no match a 0 is returned and the cursor doesn't
Karsten Hopp 9fcb8d
  		move.  No error message is given.
Karsten Hopp 9fcb8d
  
Karsten Hopp 9fcb8d
  		{flags} is a String, which can contain these character flags:
Karsten Hopp 9fcb8d
  		'b'	search backward instead of forward
Karsten Hopp 9fcb8d
*** ../vim-7.3.747/src/eval.c	2012-12-05 15:16:42.000000000 +0100
Karsten Hopp 9fcb8d
--- src/eval.c	2012-12-05 16:03:23.000000000 +0100
Karsten Hopp 9fcb8d
***************
Karsten Hopp 9fcb8d
*** 668,673 ****
Karsten Hopp 9fcb8d
--- 668,675 ----
Karsten Hopp 9fcb8d
  #ifdef FEAT_FLOAT
Karsten Hopp 9fcb8d
  static void f_round __ARGS((typval_T *argvars, typval_T *rettv));
Karsten Hopp 9fcb8d
  #endif
Karsten Hopp 9fcb8d
+ static void f_screencol __ARGS((typval_T *argvars, typval_T *rettv));
Karsten Hopp 9fcb8d
+ static void f_screenrow __ARGS((typval_T *argvars, typval_T *rettv));
Karsten Hopp 9fcb8d
  static void f_search __ARGS((typval_T *argvars, typval_T *rettv));
Karsten Hopp 9fcb8d
  static void f_searchdecl __ARGS((typval_T *argvars, typval_T *rettv));
Karsten Hopp 9fcb8d
  static void f_searchpair __ARGS((typval_T *argvars, typval_T *rettv));
Karsten Hopp 9fcb8d
***************
Karsten Hopp 9fcb8d
*** 8033,8038 ****
Karsten Hopp 9fcb8d
--- 8035,8042 ----
Karsten Hopp 9fcb8d
  #ifdef FEAT_FLOAT
Karsten Hopp 9fcb8d
      {"round",		1, 1, f_round},
Karsten Hopp 9fcb8d
  #endif
Karsten Hopp 9fcb8d
+     {"screencol",	0, 0, f_screencol},
Karsten Hopp 9fcb8d
+     {"screenrow",	0, 0, f_screenrow},
Karsten Hopp 9fcb8d
      {"search",		1, 4, f_search},
Karsten Hopp 9fcb8d
      {"searchdecl",	1, 3, f_searchdecl},
Karsten Hopp 9fcb8d
      {"searchpair",	3, 7, f_searchpair},
Karsten Hopp 9fcb8d
***************
Karsten Hopp 9fcb8d
*** 15725,15730 ****
Karsten Hopp 9fcb8d
--- 15729,15758 ----
Karsten Hopp 9fcb8d
  #endif
Karsten Hopp 9fcb8d
  
Karsten Hopp 9fcb8d
  /*
Karsten Hopp 9fcb8d
+  * "screencol()" function
Karsten Hopp 9fcb8d
+  *
Karsten Hopp 9fcb8d
+  * First column is 1 to be consistent with virtcol().
Karsten Hopp 9fcb8d
+  */
Karsten Hopp 9fcb8d
+     static void
Karsten Hopp 9fcb8d
+ f_screencol(argvars, rettv)
Karsten Hopp 9fcb8d
+     typval_T	*argvars UNUSED;
Karsten Hopp 9fcb8d
+     typval_T	*rettv;
Karsten Hopp 9fcb8d
+ {
Karsten Hopp 9fcb8d
+     rettv->vval.v_number = screen_screencol() + 1;
Karsten Hopp 9fcb8d
+ }
Karsten Hopp 9fcb8d
+ 
Karsten Hopp 9fcb8d
+ /*
Karsten Hopp 9fcb8d
+  * "screenrow()" function
Karsten Hopp 9fcb8d
+  */
Karsten Hopp 9fcb8d
+     static void
Karsten Hopp 9fcb8d
+ f_screenrow(argvars, rettv)
Karsten Hopp 9fcb8d
+     typval_T	*argvars UNUSED;
Karsten Hopp 9fcb8d
+     typval_T	*rettv;
Karsten Hopp 9fcb8d
+ {
Karsten Hopp 9fcb8d
+     rettv->vval.v_number = screen_screenrow() + 1;
Karsten Hopp 9fcb8d
+ }
Karsten Hopp 9fcb8d
+ 
Karsten Hopp 9fcb8d
+ /*
Karsten Hopp 9fcb8d
   * "search()" function
Karsten Hopp 9fcb8d
   */
Karsten Hopp 9fcb8d
      static void
Karsten Hopp 9fcb8d
*** ../vim-7.3.747/src/proto/screen.pro	2012-11-20 16:56:49.000000000 +0100
Karsten Hopp 9fcb8d
--- src/proto/screen.pro	2012-12-05 15:57:35.000000000 +0100
Karsten Hopp 9fcb8d
***************
Karsten Hopp 9fcb8d
*** 50,53 ****
Karsten Hopp 9fcb8d
--- 50,55 ----
Karsten Hopp 9fcb8d
  int messaging __ARGS((void));
Karsten Hopp 9fcb8d
  void showruler __ARGS((int always));
Karsten Hopp 9fcb8d
  int number_width __ARGS((win_T *wp));
Karsten Hopp 9fcb8d
+ int screen_screencol __ARGS((void));
Karsten Hopp 9fcb8d
+ int screen_screenrow __ARGS((void));
Karsten Hopp 9fcb8d
  /* vim: set ft=c : */
Karsten Hopp 9fcb8d
*** ../vim-7.3.747/src/screen.c	2012-12-05 15:32:24.000000000 +0100
Karsten Hopp 9fcb8d
--- src/screen.c	2012-12-05 15:58:02.000000000 +0100
Karsten Hopp 9fcb8d
***************
Karsten Hopp 9fcb8d
*** 10264,10266 ****
Karsten Hopp 9fcb8d
--- 10264,10286 ----
Karsten Hopp 9fcb8d
      return n;
Karsten Hopp 9fcb8d
  }
Karsten Hopp 9fcb8d
  #endif
Karsten Hopp 9fcb8d
+ 
Karsten Hopp 9fcb8d
+ /*
Karsten Hopp 9fcb8d
+  * Return the current cursor column. This is the actual position on the
Karsten Hopp 9fcb8d
+  * screen. First column is 0.
Karsten Hopp 9fcb8d
+  */
Karsten Hopp 9fcb8d
+     int
Karsten Hopp 9fcb8d
+ screen_screencol()
Karsten Hopp 9fcb8d
+ {
Karsten Hopp 9fcb8d
+     return screen_cur_col;
Karsten Hopp 9fcb8d
+ }
Karsten Hopp 9fcb8d
+ 
Karsten Hopp 9fcb8d
+ /*
Karsten Hopp 9fcb8d
+  * Return the current cursor row. This is the actual position on the screen.
Karsten Hopp 9fcb8d
+  * First row is 0.
Karsten Hopp 9fcb8d
+  */
Karsten Hopp 9fcb8d
+     int
Karsten Hopp 9fcb8d
+ screen_screenrow()
Karsten Hopp 9fcb8d
+ {
Karsten Hopp 9fcb8d
+     return screen_cur_row;
Karsten Hopp 9fcb8d
+ }
Karsten Hopp 9fcb8d
*** ../vim-7.3.747/src/testdir/Make_amiga.mak	2012-06-29 12:54:32.000000000 +0200
Karsten Hopp 9fcb8d
--- src/testdir/Make_amiga.mak	2012-12-05 16:00:14.000000000 +0100
Karsten Hopp 9fcb8d
***************
Karsten Hopp 9fcb8d
*** 31,37 ****
Karsten Hopp 9fcb8d
  		test66.out test67.out test68.out test69.out test70.out \
Karsten Hopp 9fcb8d
  		test71.out test72.out test73.out test74.out test75.out \
Karsten Hopp 9fcb8d
  		test76.out test77.out test78.out test79.out test80.out \
Karsten Hopp 9fcb8d
! 		test81.out test82.out test83.out test84.out
Karsten Hopp 9fcb8d
  
Karsten Hopp 9fcb8d
  .SUFFIXES: .in .out
Karsten Hopp 9fcb8d
  
Karsten Hopp 9fcb8d
--- 31,37 ----
Karsten Hopp 9fcb8d
  		test66.out test67.out test68.out test69.out test70.out \
Karsten Hopp 9fcb8d
  		test71.out test72.out test73.out test74.out test75.out \
Karsten Hopp 9fcb8d
  		test76.out test77.out test78.out test79.out test80.out \
Karsten Hopp 9fcb8d
! 		test81.out test82.out test83.out test84.out test88.out
Karsten Hopp 9fcb8d
  
Karsten Hopp 9fcb8d
  .SUFFIXES: .in .out
Karsten Hopp 9fcb8d
  
Karsten Hopp 9fcb8d
***************
Karsten Hopp 9fcb8d
*** 135,137 ****
Karsten Hopp 9fcb8d
--- 135,138 ----
Karsten Hopp 9fcb8d
  test82.out: test82.in
Karsten Hopp 9fcb8d
  test83.out: test83.in
Karsten Hopp 9fcb8d
  test84.out: test84.in
Karsten Hopp 9fcb8d
+ test88.out: test88.in
Karsten Hopp 9fcb8d
*** ../vim-7.3.747/src/testdir/Make_dos.mak	2012-10-06 19:10:29.000000000 +0200
Karsten Hopp 9fcb8d
--- src/testdir/Make_dos.mak	2012-12-05 16:00:29.000000000 +0100
Karsten Hopp 9fcb8d
***************
Karsten Hopp 9fcb8d
*** 30,36 ****
Karsten Hopp 9fcb8d
  		test68.out test69.out test71.out test72.out test73.out \
Karsten Hopp 9fcb8d
  		test74.out test75.out test76.out test77.out test78.out \
Karsten Hopp 9fcb8d
  		test79.out test80.out test81.out test82.out test83.out \
Karsten Hopp 9fcb8d
! 		test84.out test85.out test86.out test87.out
Karsten Hopp 9fcb8d
  
Karsten Hopp 9fcb8d
  SCRIPTS32 =	test50.out test70.out
Karsten Hopp 9fcb8d
  
Karsten Hopp 9fcb8d
--- 30,36 ----
Karsten Hopp 9fcb8d
  		test68.out test69.out test71.out test72.out test73.out \
Karsten Hopp 9fcb8d
  		test74.out test75.out test76.out test77.out test78.out \
Karsten Hopp 9fcb8d
  		test79.out test80.out test81.out test82.out test83.out \
Karsten Hopp 9fcb8d
! 		test84.out test85.out test86.out test87.out test88.out
Karsten Hopp 9fcb8d
  
Karsten Hopp 9fcb8d
  SCRIPTS32 =	test50.out test70.out
Karsten Hopp 9fcb8d
  
Karsten Hopp 9fcb8d
*** ../vim-7.3.747/src/testdir/Make_ming.mak	2012-10-06 19:10:29.000000000 +0200
Karsten Hopp 9fcb8d
--- src/testdir/Make_ming.mak	2012-12-05 16:00:40.000000000 +0100
Karsten Hopp 9fcb8d
***************
Karsten Hopp 9fcb8d
*** 50,56 ****
Karsten Hopp 9fcb8d
  		test68.out test69.out test71.out test72.out test73.out \
Karsten Hopp 9fcb8d
  		test74.out test75.out test76.out test77.out test78.out \
Karsten Hopp 9fcb8d
  		test79.out test80.out test81.out test82.out test83.out \
Karsten Hopp 9fcb8d
! 		test84.out test85.out test86.out test87.out
Karsten Hopp 9fcb8d
  
Karsten Hopp 9fcb8d
  SCRIPTS32 =	test50.out test70.out
Karsten Hopp 9fcb8d
  
Karsten Hopp 9fcb8d
--- 50,56 ----
Karsten Hopp 9fcb8d
  		test68.out test69.out test71.out test72.out test73.out \
Karsten Hopp 9fcb8d
  		test74.out test75.out test76.out test77.out test78.out \
Karsten Hopp 9fcb8d
  		test79.out test80.out test81.out test82.out test83.out \
Karsten Hopp 9fcb8d
! 		test84.out test85.out test86.out test87.out test88.out
Karsten Hopp 9fcb8d
  
Karsten Hopp 9fcb8d
  SCRIPTS32 =	test50.out test70.out
Karsten Hopp 9fcb8d
  
Karsten Hopp 9fcb8d
*** ../vim-7.3.747/src/testdir/Make_os2.mak	2012-06-29 12:54:32.000000000 +0200
Karsten Hopp 9fcb8d
--- src/testdir/Make_os2.mak	2012-12-05 16:00:50.000000000 +0100
Karsten Hopp 9fcb8d
***************
Karsten Hopp 9fcb8d
*** 31,37 ****
Karsten Hopp 9fcb8d
  		test66.out test67.out test68.out test69.out test70.out \
Karsten Hopp 9fcb8d
  		test71.out test72.out test73.out test74.out test75.out \
Karsten Hopp 9fcb8d
  		test76.out test77.out test78.out test79.out test80.out \
Karsten Hopp 9fcb8d
! 		test81.out test82.out test83.out test84.out
Karsten Hopp 9fcb8d
  
Karsten Hopp 9fcb8d
  .SUFFIXES: .in .out
Karsten Hopp 9fcb8d
  
Karsten Hopp 9fcb8d
--- 31,37 ----
Karsten Hopp 9fcb8d
  		test66.out test67.out test68.out test69.out test70.out \
Karsten Hopp 9fcb8d
  		test71.out test72.out test73.out test74.out test75.out \
Karsten Hopp 9fcb8d
  		test76.out test77.out test78.out test79.out test80.out \
Karsten Hopp 9fcb8d
! 		test81.out test82.out test83.out test84.out test88.out
Karsten Hopp 9fcb8d
  
Karsten Hopp 9fcb8d
  .SUFFIXES: .in .out
Karsten Hopp 9fcb8d
  
Karsten Hopp 9fcb8d
*** ../vim-7.3.747/src/testdir/Make_vms.mms	2012-10-06 19:10:29.000000000 +0200
Karsten Hopp 9fcb8d
--- src/testdir/Make_vms.mms	2012-12-05 16:01:03.000000000 +0100
Karsten Hopp 9fcb8d
***************
Karsten Hopp 9fcb8d
*** 4,10 ****
Karsten Hopp 9fcb8d
  # Authors:	Zoltan Arpadffy, <arpadffy@polarhome.com>
Karsten Hopp 9fcb8d
  #		Sandor Kopanyi,  <sandor.kopanyi@mailbox.hu>
Karsten Hopp 9fcb8d
  #
Karsten Hopp 9fcb8d
! # Last change:  2012 Oct 06
Karsten Hopp 9fcb8d
  #
Karsten Hopp 9fcb8d
  # This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
Karsten Hopp 9fcb8d
  # Edit the lines in the Configuration section below to select.
Karsten Hopp 9fcb8d
--- 4,10 ----
Karsten Hopp 9fcb8d
  # Authors:	Zoltan Arpadffy, <arpadffy@polarhome.com>
Karsten Hopp 9fcb8d
  #		Sandor Kopanyi,  <sandor.kopanyi@mailbox.hu>
Karsten Hopp 9fcb8d
  #
Karsten Hopp 9fcb8d
! # Last change:  2012 Dec 05
Karsten Hopp 9fcb8d
  #
Karsten Hopp 9fcb8d
  # This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
Karsten Hopp 9fcb8d
  # Edit the lines in the Configuration section below to select.
Karsten Hopp 9fcb8d
***************
Karsten Hopp 9fcb8d
*** 76,82 ****
Karsten Hopp 9fcb8d
  	 test66.out test67.out test68.out test69.out \
Karsten Hopp 9fcb8d
  	 test71.out test72.out test74.out test75.out test76.out \
Karsten Hopp 9fcb8d
  	 test77.out test78.out test79.out test80.out test81.out \
Karsten Hopp 9fcb8d
! 	 test82.out test83.out test84.out
Karsten Hopp 9fcb8d
  
Karsten Hopp 9fcb8d
  # Known problems:
Karsten Hopp 9fcb8d
  # Test 30: a problem around mac format - unknown reason
Karsten Hopp 9fcb8d
--- 76,82 ----
Karsten Hopp 9fcb8d
  	 test66.out test67.out test68.out test69.out \
Karsten Hopp 9fcb8d
  	 test71.out test72.out test74.out test75.out test76.out \
Karsten Hopp 9fcb8d
  	 test77.out test78.out test79.out test80.out test81.out \
Karsten Hopp 9fcb8d
! 	 test82.out test83.out test84.out test88.out
Karsten Hopp 9fcb8d
  
Karsten Hopp 9fcb8d
  # Known problems:
Karsten Hopp 9fcb8d
  # Test 30: a problem around mac format - unknown reason
Karsten Hopp 9fcb8d
*** ../vim-7.3.747/src/testdir/Makefile	2012-10-06 19:10:29.000000000 +0200
Karsten Hopp 9fcb8d
--- src/testdir/Makefile	2012-12-05 15:59:02.000000000 +0100
Karsten Hopp 9fcb8d
***************
Karsten Hopp 9fcb8d
*** 13,19 ****
Karsten Hopp 9fcb8d
  
Karsten Hopp 9fcb8d
  SCRIPTS = test1.out test2.out test3.out test4.out test5.out test6.out \
Karsten Hopp 9fcb8d
  		test7.out test8.out test9.out test10.out test11.out \
Karsten Hopp 9fcb8d
! 		test12.out  test13.out test14.out test15.out test17.out \
Karsten Hopp 9fcb8d
  		test18.out test19.out test20.out test21.out test22.out \
Karsten Hopp 9fcb8d
  		test23.out test24.out test25.out test26.out test27.out \
Karsten Hopp 9fcb8d
  		test28.out test29.out test30.out test31.out test32.out \
Karsten Hopp 9fcb8d
--- 13,19 ----
Karsten Hopp 9fcb8d
  
Karsten Hopp 9fcb8d
  SCRIPTS = test1.out test2.out test3.out test4.out test5.out test6.out \
Karsten Hopp 9fcb8d
  		test7.out test8.out test9.out test10.out test11.out \
Karsten Hopp 9fcb8d
! 		test12.out test13.out test14.out test15.out test17.out \
Karsten Hopp 9fcb8d
  		test18.out test19.out test20.out test21.out test22.out \
Karsten Hopp 9fcb8d
  		test23.out test24.out test25.out test26.out test27.out \
Karsten Hopp 9fcb8d
  		test28.out test29.out test30.out test31.out test32.out \
Karsten Hopp 9fcb8d
***************
Karsten Hopp 9fcb8d
*** 27,33 ****
Karsten Hopp 9fcb8d
  		test69.out test70.out test71.out test72.out test73.out \
Karsten Hopp 9fcb8d
  		test74.out test75.out test76.out test77.out test78.out \
Karsten Hopp 9fcb8d
  		test79.out test80.out test81.out test82.out test83.out \
Karsten Hopp 9fcb8d
! 		test84.out test85.out test86.out test87.out
Karsten Hopp 9fcb8d
  
Karsten Hopp 9fcb8d
  SCRIPTS_GUI = test16.out
Karsten Hopp 9fcb8d
  
Karsten Hopp 9fcb8d
--- 27,33 ----
Karsten Hopp 9fcb8d
  		test69.out test70.out test71.out test72.out test73.out \
Karsten Hopp 9fcb8d
  		test74.out test75.out test76.out test77.out test78.out \
Karsten Hopp 9fcb8d
  		test79.out test80.out test81.out test82.out test83.out \
Karsten Hopp 9fcb8d
! 		test84.out test85.out test86.out test87.out test88.out
Karsten Hopp 9fcb8d
  
Karsten Hopp 9fcb8d
  SCRIPTS_GUI = test16.out
Karsten Hopp 9fcb8d
  
Karsten Hopp 9fcb8d
*** ../vim-7.3.747/src/testdir/test88.in	2012-12-05 16:08:56.000000000 +0100
Karsten Hopp 9fcb8d
--- src/testdir/test88.in	2012-12-05 15:40:05.000000000 +0100
Karsten Hopp 9fcb8d
***************
Karsten Hopp 9fcb8d
*** 0 ****
Karsten Hopp 9fcb8d
--- 1,85 ----
Karsten Hopp 9fcb8d
+ vim: set ft=vim
Karsten Hopp 9fcb8d
+ 
Karsten Hopp 9fcb8d
+ Tests for correct display (cursor column position) with +conceal and
Karsten Hopp 9fcb8d
+ tabulators.
Karsten Hopp 9fcb8d
+ 
Karsten Hopp 9fcb8d
+ STARTTEST
Karsten Hopp 9fcb8d
+ :so small.vim
Karsten Hopp 9fcb8d
+ :if !has('conceal')
Karsten Hopp 9fcb8d
+    e! test.ok
Karsten Hopp 9fcb8d
+    wq! test.out
Karsten Hopp 9fcb8d
+ :endif
Karsten Hopp 9fcb8d
+ :" Conceal settings.
Karsten Hopp 9fcb8d
+ :set conceallevel=2
Karsten Hopp 9fcb8d
+ :set concealcursor=nc
Karsten Hopp 9fcb8d
+ :syntax match test /|/ conceal
Karsten Hopp 9fcb8d
+ :" Save current cursor position. Only works in <expr> mode, can't be used
Karsten Hopp 9fcb8d
+ :" with :normal because it moves the cursor to the command line. Thanks to ZyX
Karsten Hopp 9fcb8d
+ :" <zyx.vim@gmail.com> for the idea to use an <expr> mapping.
Karsten Hopp 9fcb8d
+ :let positions = []
Karsten Hopp 9fcb8d
+ :nnoremap <expr> GG ":let positions += ['".screenrow().":".screencol()."']\n"
Karsten Hopp 9fcb8d
+ :" Start test.
Karsten Hopp 9fcb8d
+ /^start:
Karsten Hopp 9fcb8d
+ :normal ztj
Karsten Hopp 9fcb8d
+ GGk
Karsten Hopp 9fcb8d
+ :" We should end up in the same column when running these commands on the two
Karsten Hopp 9fcb8d
+ :" lines.
Karsten Hopp 9fcb8d
+ :normal ft
Karsten Hopp 9fcb8d
+ GGk
Karsten Hopp 9fcb8d
+ :normal $
Karsten Hopp 9fcb8d
+ GGk
Karsten Hopp 9fcb8d
+ :normal 0j
Karsten Hopp 9fcb8d
+ GGk
Karsten Hopp 9fcb8d
+ :normal ft
Karsten Hopp 9fcb8d
+ GGk
Karsten Hopp 9fcb8d
+ :normal $
Karsten Hopp 9fcb8d
+ GGk
Karsten Hopp 9fcb8d
+ :normal 0j0j
Karsten Hopp 9fcb8d
+ GGk
Karsten Hopp 9fcb8d
+ :" Same for next test block.
Karsten Hopp 9fcb8d
+ :normal ft
Karsten Hopp 9fcb8d
+ GGk
Karsten Hopp 9fcb8d
+ :normal $
Karsten Hopp 9fcb8d
+ GGk
Karsten Hopp 9fcb8d
+ :normal 0j
Karsten Hopp 9fcb8d
+ GGk
Karsten Hopp 9fcb8d
+ :normal ft
Karsten Hopp 9fcb8d
+ GGk
Karsten Hopp 9fcb8d
+ :normal $
Karsten Hopp 9fcb8d
+ GGk
Karsten Hopp 9fcb8d
+ :normal 0j0j
Karsten Hopp 9fcb8d
+ GGk
Karsten Hopp 9fcb8d
+ :" And check W with multiple tabs and conceals in a line.
Karsten Hopp 9fcb8d
+ :normal W
Karsten Hopp 9fcb8d
+ GGk
Karsten Hopp 9fcb8d
+ :normal W
Karsten Hopp 9fcb8d
+ GGk
Karsten Hopp 9fcb8d
+ :normal W
Karsten Hopp 9fcb8d
+ GGk
Karsten Hopp 9fcb8d
+ :normal $
Karsten Hopp 9fcb8d
+ GGk
Karsten Hopp 9fcb8d
+ :normal 0j
Karsten Hopp 9fcb8d
+ GGk
Karsten Hopp 9fcb8d
+ :normal W
Karsten Hopp 9fcb8d
+ GGk
Karsten Hopp 9fcb8d
+ :normal W
Karsten Hopp 9fcb8d
+ GGk
Karsten Hopp 9fcb8d
+ :normal W
Karsten Hopp 9fcb8d
+ GGk
Karsten Hopp 9fcb8d
+ :normal $
Karsten Hopp 9fcb8d
+ GGk
Karsten Hopp 9fcb8d
+ :" Display result.
Karsten Hopp 9fcb8d
+ :call append('$', 'end:')
Karsten Hopp 9fcb8d
+ :call append('$', positions)
Karsten Hopp 9fcb8d
+ :/^end/,$wq! test.out
Karsten Hopp 9fcb8d
+ ENDTEST
Karsten Hopp 9fcb8d
+ 
Karsten Hopp 9fcb8d
+ start:
Karsten Hopp 9fcb8d
+ .concealed.     text
Karsten Hopp 9fcb8d
+ |concealed|	text
Karsten Hopp 9fcb8d
+ 
Karsten Hopp 9fcb8d
+ 	.concealed.	text
Karsten Hopp 9fcb8d
+ 	|concealed|	text
Karsten Hopp 9fcb8d
+ 
Karsten Hopp 9fcb8d
+ .a.	.b.	.c.	.d.
Karsten Hopp 9fcb8d
+ |a|	|b|	|c|	|d|
Karsten Hopp 9fcb8d
*** ../vim-7.3.747/src/testdir/test88.ok	2012-12-05 16:08:56.000000000 +0100
Karsten Hopp 9fcb8d
--- src/testdir/test88.ok	2012-12-05 15:40:05.000000000 +0100
Karsten Hopp 9fcb8d
***************
Karsten Hopp 9fcb8d
*** 0 ****
Karsten Hopp 9fcb8d
--- 1,23 ----
Karsten Hopp 9fcb8d
+ end:
Karsten Hopp 9fcb8d
+ 2:1
Karsten Hopp 9fcb8d
+ 2:17
Karsten Hopp 9fcb8d
+ 2:20
Karsten Hopp 9fcb8d
+ 3:1
Karsten Hopp 9fcb8d
+ 3:17
Karsten Hopp 9fcb8d
+ 3:20
Karsten Hopp 9fcb8d
+ 5:8
Karsten Hopp 9fcb8d
+ 5:25
Karsten Hopp 9fcb8d
+ 5:28
Karsten Hopp 9fcb8d
+ 6:8
Karsten Hopp 9fcb8d
+ 6:25
Karsten Hopp 9fcb8d
+ 6:28
Karsten Hopp 9fcb8d
+ 8:1
Karsten Hopp 9fcb8d
+ 8:9
Karsten Hopp 9fcb8d
+ 8:17
Karsten Hopp 9fcb8d
+ 8:25
Karsten Hopp 9fcb8d
+ 8:27
Karsten Hopp 9fcb8d
+ 9:1
Karsten Hopp 9fcb8d
+ 9:9
Karsten Hopp 9fcb8d
+ 9:17
Karsten Hopp 9fcb8d
+ 9:25
Karsten Hopp 9fcb8d
+ 9:26
Karsten Hopp 9fcb8d
*** ../vim-7.3.747/src/version.c	2012-12-05 15:32:24.000000000 +0100
Karsten Hopp 9fcb8d
--- src/version.c	2012-12-05 16:07:46.000000000 +0100
Karsten Hopp 9fcb8d
***************
Karsten Hopp 9fcb8d
*** 727,728 ****
Karsten Hopp 9fcb8d
--- 727,730 ----
Karsten Hopp 9fcb8d
  {   /* Add new patch number below this line */
Karsten Hopp 9fcb8d
+ /**/
Karsten Hopp 9fcb8d
+     748,
Karsten Hopp 9fcb8d
  /**/
Karsten Hopp 9fcb8d
Karsten Hopp 9fcb8d
-- 
Karsten Hopp 9fcb8d
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 9fcb8d
101. U can read htis w/o ny porblm and cant figur eout Y its evn listd.
Karsten Hopp 9fcb8d
Karsten Hopp 9fcb8d
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 9fcb8d
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 9fcb8d
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 9fcb8d
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///