Blame SOURCES/7.4.473

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