Karsten Hopp 65ccf3
To: vim_dev@googlegroups.com
Karsten Hopp 65ccf3
Subject: Patch 7.3.214
Karsten Hopp 65ccf3
Fcc: outbox
Karsten Hopp 65ccf3
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 65ccf3
Mime-Version: 1.0
Karsten Hopp 65ccf3
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 65ccf3
Content-Transfer-Encoding: 8bit
Karsten Hopp 65ccf3
------------
Karsten Hopp 65ccf3
Karsten Hopp 65ccf3
Patch 7.3.214
Karsten Hopp 65ccf3
Problem:    The text displayed by ":z-" isn't exactly like old Vi.
Karsten Hopp 65ccf3
Solution:   Add one to the start line number. (ChangZhuo Chen)
Karsten Hopp 65ccf3
Files:      src/ex_cmds.c
Karsten Hopp 65ccf3
Karsten Hopp 65ccf3
Karsten Hopp 65ccf3
*** ../mercurial/vim73/src/ex_cmds.c	2011-05-19 14:30:07.000000000 +0200
Karsten Hopp 65ccf3
--- src/ex_cmds.c	2011-05-19 14:23:33.000000000 +0200
Karsten Hopp 65ccf3
***************
Karsten Hopp 65ccf3
*** 4097,4104 ****
Karsten Hopp 65ccf3
      switch (*kind)
Karsten Hopp 65ccf3
      {
Karsten Hopp 65ccf3
  	case '-':
Karsten Hopp 65ccf3
! 	    start = lnum - bigness * (linenr_T)(x - kind);
Karsten Hopp 65ccf3
! 	    end = start + bigness;
Karsten Hopp 65ccf3
  	    curs = end;
Karsten Hopp 65ccf3
  	    break;
Karsten Hopp 65ccf3
  
Karsten Hopp 65ccf3
--- 4097,4104 ----
Karsten Hopp 65ccf3
      switch (*kind)
Karsten Hopp 65ccf3
      {
Karsten Hopp 65ccf3
  	case '-':
Karsten Hopp 65ccf3
! 	    start = lnum - bigness * (linenr_T)(x - kind) + 1;
Karsten Hopp 65ccf3
! 	    end = start + bigness - 1;
Karsten Hopp 65ccf3
  	    curs = end;
Karsten Hopp 65ccf3
  	    break;
Karsten Hopp 65ccf3
  
Karsten Hopp 65ccf3
*** ../vim-7.3.213/src/version.c	2011-06-12 21:51:01.000000000 +0200
Karsten Hopp 65ccf3
--- src/version.c	2011-06-12 22:02:20.000000000 +0200
Karsten Hopp 65ccf3
***************
Karsten Hopp 65ccf3
*** 711,712 ****
Karsten Hopp 65ccf3
--- 711,714 ----
Karsten Hopp 65ccf3
  {   /* Add new patch number below this line */
Karsten Hopp 65ccf3
+ /**/
Karsten Hopp 65ccf3
+     214,
Karsten Hopp 65ccf3
  /**/
Karsten Hopp 65ccf3
Karsten Hopp 65ccf3
-- 
Karsten Hopp 65ccf3
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 65ccf3
170. You introduce your wife as "my_lady@home.wife" and refer to your
Karsten Hopp 65ccf3
     children as "forked processes."
Karsten Hopp 65ccf3
Karsten Hopp 65ccf3
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 65ccf3
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 65ccf3
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 65ccf3
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///