Karsten Hopp 5d8ab8
To: vim-dev@vim.org
Karsten Hopp 5d8ab8
Subject: Patch 7.2.255
Karsten Hopp 5d8ab8
Fcc: outbox
Karsten Hopp 5d8ab8
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 5d8ab8
Mime-Version: 1.0
Karsten Hopp 5d8ab8
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 5d8ab8
Content-Transfer-Encoding: 8bit
Karsten Hopp 5d8ab8
------------
Karsten Hopp 5d8ab8
Karsten Hopp 5d8ab8
Patch 7.2.255 (after 7.2.242)
Karsten Hopp 5d8ab8
Problem:    Setting 'rightleft', 'linebreak' and 'wrap' may cause cursor to be
Karsten Hopp 5d8ab8
	    in wrong place.
Karsten Hopp 5d8ab8
Solution:   Recompute the cursor column for these options.
Karsten Hopp 5d8ab8
Files:	    src/option.c
Karsten Hopp 5d8ab8
Karsten Hopp 5d8ab8
Karsten Hopp 5d8ab8
*** ../vim-7.2.254/src/option.c	2009-07-29 15:41:32.000000000 +0200
Karsten Hopp 5d8ab8
--- src/option.c	2009-09-11 13:59:55.000000000 +0200
Karsten Hopp 5d8ab8
***************
Karsten Hopp 5d8ab8
*** 7430,7435 ****
Karsten Hopp 5d8ab8
--- 7430,7437 ----
Karsten Hopp 5d8ab8
      {
Karsten Hopp 5d8ab8
  	if (curwin->w_p_wrap)
Karsten Hopp 5d8ab8
  	    curwin->w_leftcol = 0;
Karsten Hopp 5d8ab8
+ 	if (curwin->w_curswant != MAXCOL)
Karsten Hopp 5d8ab8
+ 	    curwin->w_set_curswant = TRUE;
Karsten Hopp 5d8ab8
      }
Karsten Hopp 5d8ab8
  
Karsten Hopp 5d8ab8
  #ifdef FEAT_WINDOWS
Karsten Hopp 5d8ab8
***************
Karsten Hopp 5d8ab8
*** 7664,7669 ****
Karsten Hopp 5d8ab8
--- 7666,7687 ----
Karsten Hopp 5d8ab8
      }
Karsten Hopp 5d8ab8
  #endif
Karsten Hopp 5d8ab8
  
Karsten Hopp 5d8ab8
+ #ifdef FEAT_LINEBREAK
Karsten Hopp 5d8ab8
+     if ((int *)varp == &curwin->w_p_lbr)
Karsten Hopp 5d8ab8
+     {
Karsten Hopp 5d8ab8
+ 	if (curwin->w_curswant != MAXCOL)
Karsten Hopp 5d8ab8
+ 	    curwin->w_set_curswant = TRUE;
Karsten Hopp 5d8ab8
+     }
Karsten Hopp 5d8ab8
+ #endif
Karsten Hopp 5d8ab8
+ 
Karsten Hopp 5d8ab8
+ #ifdef FEAT_RIGHTLEFT
Karsten Hopp 5d8ab8
+     if ((int *)varp == &curwin->w_p_rl)
Karsten Hopp 5d8ab8
+     {
Karsten Hopp 5d8ab8
+ 	if (curwin->w_curswant != MAXCOL)
Karsten Hopp 5d8ab8
+ 	    curwin->w_set_curswant = TRUE;
Karsten Hopp 5d8ab8
+     }
Karsten Hopp 5d8ab8
+ #endif
Karsten Hopp 5d8ab8
+ 
Karsten Hopp 5d8ab8
      /*
Karsten Hopp 5d8ab8
       * End of handling side effects for bool options.
Karsten Hopp 5d8ab8
       */
Karsten Hopp 5d8ab8
*** ../vim-7.2.254/src/version.c	2009-09-11 15:04:13.000000000 +0200
Karsten Hopp 5d8ab8
--- src/version.c	2009-09-11 15:19:40.000000000 +0200
Karsten Hopp 5d8ab8
***************
Karsten Hopp 5d8ab8
*** 678,679 ****
Karsten Hopp 5d8ab8
--- 678,681 ----
Karsten Hopp 5d8ab8
  {   /* Add new patch number below this line */
Karsten Hopp 5d8ab8
+ /**/
Karsten Hopp 5d8ab8
+     255,
Karsten Hopp 5d8ab8
  /**/
Karsten Hopp 5d8ab8
Karsten Hopp 5d8ab8
-- 
Karsten Hopp 5d8ab8
A computer without Windows is like a fish without a bicycle.
Karsten Hopp 5d8ab8
Karsten Hopp 5d8ab8
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 5d8ab8
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 5d8ab8
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 5d8ab8
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///