Karsten Hopp 1b0174
To: vim_dev@googlegroups.com
Karsten Hopp 1b0174
Subject: Patch 7.4.473
Karsten Hopp 1b0174
Fcc: outbox
Karsten Hopp 1b0174
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 1b0174
Mime-Version: 1.0
Karsten Hopp 1b0174
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 1b0174
Content-Transfer-Encoding: 8bit
Karsten Hopp 1b0174
------------
Karsten Hopp 1b0174
Karsten Hopp 1b0174
Patch 7.4.473
Karsten Hopp 1b0174
Problem:    Cursor movement is incorrect when there is a number
Karsten Hopp 1b0174
	    column/sign/fold column and 'sbr' is displayed.
Karsten Hopp 1b0174
Solution:   Adjust the column for 'sbr'. (Christian Brabandt)
Karsten Hopp 1b0174
Files:	    src/charset.c
Karsten Hopp 1b0174
Karsten Hopp 1b0174
Karsten Hopp 1b0174
*** ../vim-7.4.472/src/charset.c	2014-08-24 21:19:22.224571318 +0200
Karsten Hopp 1b0174
--- src/charset.c	2014-10-10 15:24:26.257091676 +0200
Karsten Hopp 1b0174
***************
Karsten Hopp 1b0174
*** 1184,1189 ****
Karsten Hopp 1b0174
--- 1184,1191 ----
Karsten Hopp 1b0174
  	{
Karsten Hopp 1b0174
  	    col -= W_WIDTH(wp);
Karsten Hopp 1b0174
  	    numberextra = W_WIDTH(wp) - (numberextra - win_col_off2(wp));
Karsten Hopp 1b0174
+ 	    if (*p_sbr != NUL && col >= (colnr_T)STRLEN(p_sbr))
Karsten Hopp 1b0174
+ 		col -= (colnr_T)STRLEN(p_sbr);
Karsten Hopp 1b0174
  	    if (numberextra > 0)
Karsten Hopp 1b0174
  		col = col % numberextra;
Karsten Hopp 1b0174
  	}
Karsten Hopp 1b0174
*** ../vim-7.4.472/src/version.c	2014-10-10 15:28:41.985092234 +0200
Karsten Hopp 1b0174
--- src/version.c	2014-10-10 15:32:19.029092709 +0200
Karsten Hopp 1b0174
***************
Karsten Hopp 1b0174
*** 743,744 ****
Karsten Hopp 1b0174
--- 743,746 ----
Karsten Hopp 1b0174
  {   /* Add new patch number below this line */
Karsten Hopp 1b0174
+ /**/
Karsten Hopp 1b0174
+     473,
Karsten Hopp 1b0174
  /**/
Karsten Hopp 1b0174
Karsten Hopp 1b0174
-- 
Karsten Hopp 1b0174
Vi is clearly superior to emacs, since "vi" has only two characters
Karsten Hopp 1b0174
(and two keystrokes), while "emacs" has five.  (Randy C. Ford)
Karsten Hopp 1b0174
Karsten Hopp 1b0174
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 1b0174
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 1b0174
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 1b0174
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///