6d2da6b
To: vim-dev@vim.org
6d2da6b
Subject: Patch 7.2.147
6d2da6b
Fcc: outbox
6d2da6b
From: Bram Moolenaar <Bram@moolenaar.net>
6d2da6b
Mime-Version: 1.0
6d2da6b
Content-Type: text/plain; charset=ISO-8859-1
6d2da6b
Content-Transfer-Encoding: 8bit
6d2da6b
------------
6d2da6b
6d2da6b
Patch 7.2.147
6d2da6b
Problem:    When compiled as small version and 'number' is on the cursor is
6d2da6b
	    displayed in the wrong position after a tab. (James Vega)
6d2da6b
Solution:   Don't increment vcol when still displaying the line number.
6d2da6b
Files:	    src/screen.c
6d2da6b
6d2da6b
6d2da6b
*** ../vim-7.2.146/src/screen.c	Wed Mar 11 17:57:05 2009
6d2da6b
--- src/screen.c	Wed Mar 18 16:18:00 2009
6d2da6b
***************
6d2da6b
*** 4665,4671 ****
6d2da6b
  	    --n_skip;
6d2da6b
  
6d2da6b
  	/* Only advance the "vcol" when after the 'number' column. */
6d2da6b
! 	if (draw_state >= WL_SBR
6d2da6b
  #ifdef FEAT_DIFF
6d2da6b
  		&& filler_todo <= 0
6d2da6b
  #endif
6d2da6b
--- 4665,4671 ----
6d2da6b
  	    --n_skip;
6d2da6b
  
6d2da6b
  	/* Only advance the "vcol" when after the 'number' column. */
6d2da6b
! 	if (draw_state > WL_NR
6d2da6b
  #ifdef FEAT_DIFF
6d2da6b
  		&& filler_todo <= 0
6d2da6b
  #endif
6d2da6b
*** ../vim-7.2.146/src/version.c	Wed Mar 18 15:40:03 2009
6d2da6b
--- src/version.c	Wed Mar 18 16:26:00 2009
6d2da6b
***************
6d2da6b
*** 678,679 ****
6d2da6b
--- 678,681 ----
6d2da6b
  {   /* Add new patch number below this line */
6d2da6b
+ /**/
6d2da6b
+     147,
6d2da6b
  /**/
6d2da6b
6d2da6b
-- 
6d2da6b
You can tune a file system, but you can't tuna fish
6d2da6b
							-- man tunefs
6d2da6b
6d2da6b
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
6d2da6b
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
6d2da6b
\\\        download, build and distribute -- http://www.A-A-P.org        ///
6d2da6b
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///