Karsten Hopp 0574c1
To: vim_dev@googlegroups.com
Karsten Hopp 0574c1
Subject: Patch 7.4.517
Karsten Hopp 0574c1
Fcc: outbox
Karsten Hopp 0574c1
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 0574c1
Mime-Version: 1.0
Karsten Hopp 0574c1
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 0574c1
Content-Transfer-Encoding: 8bit
Karsten Hopp 0574c1
------------
Karsten Hopp 0574c1
Karsten Hopp 0574c1
Patch 7.4.517
Karsten Hopp 0574c1
Problem:    With a wrapping line the cursor may not end up in the right place.
Karsten Hopp 0574c1
	    (Nazri Ramliy)
Karsten Hopp 0574c1
Solution:   Adjust n_extra for a Tab that wraps. (Christian Brabandt)
Karsten Hopp 0574c1
Files:	    src/screen.c
Karsten Hopp 0574c1
Karsten Hopp 0574c1
Karsten Hopp 0574c1
*** ../vim-7.4.516/src/screen.c	2014-10-10 15:28:41.985092234 +0200
Karsten Hopp 0574c1
--- src/screen.c	2014-11-19 12:53:37.351818719 +0100
Karsten Hopp 0574c1
***************
Karsten Hopp 0574c1
*** 4456,4461 ****
Karsten Hopp 0574c1
--- 4456,4465 ----
Karsten Hopp 0574c1
  		    /* TODO: is passing p for start of the line OK? */
Karsten Hopp 0574c1
  		    n_extra = win_lbr_chartabsize(wp, line, p, (colnr_T)vcol,
Karsten Hopp 0574c1
  								    NULL) - 1;
Karsten Hopp 0574c1
+ 		    if (c == TAB && n_extra + col > W_WIDTH(wp))
Karsten Hopp 0574c1
+ 			n_extra = (int)wp->w_buffer->b_p_ts
Karsten Hopp 0574c1
+ 				       - vcol % (int)wp->w_buffer->b_p_ts - 1;
Karsten Hopp 0574c1
+ 
Karsten Hopp 0574c1
  		    c_extra = ' ';
Karsten Hopp 0574c1
  		    if (vim_iswhite(c))
Karsten Hopp 0574c1
  		    {
Karsten Hopp 0574c1
*** ../vim-7.4.516/src/version.c	2014-11-12 20:09:02.879529412 +0100
Karsten Hopp 0574c1
--- src/version.c	2014-11-19 12:56:19.421955598 +0100
Karsten Hopp 0574c1
***************
Karsten Hopp 0574c1
*** 743,744 ****
Karsten Hopp 0574c1
--- 743,746 ----
Karsten Hopp 0574c1
  {   /* Add new patch number below this line */
Karsten Hopp 0574c1
+ /**/
Karsten Hopp 0574c1
+     517,
Karsten Hopp 0574c1
  /**/
Karsten Hopp 0574c1
Karsten Hopp 0574c1
-- 
Karsten Hopp 0574c1
Permission is granted to read this message out aloud on Kings Cross Road,
Karsten Hopp 0574c1
London, under the condition that the orator is properly dressed.
Karsten Hopp 0574c1
Karsten Hopp 0574c1
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 0574c1
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 0574c1
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 0574c1
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///