Patch 7.4.659
Problem:    When 'ruler' is set the preferred column is reset. (Issue 339)
Solution:   Don't set curswant when redrawing the status lines.
Files:      src/option.c


*** ../vim-7.4.658/src/option.c 2015-02-10 19:20:33.731792076 +0100
--- src/option.c        2015-03-13 11:19:50.564937256 +0100
***************
*** 7193,7199 ****
  #endif
  
      if (curwin->w_curswant != MAXCOL
!                    && (options[opt_idx].flags & (P_CURSWANT | P_RCLR)) != 0)
        curwin->w_set_curswant = TRUE;
  
  #ifdef FEAT_GUI
--- 7193,7199 ----
  #endif
  
      if (curwin->w_curswant != MAXCOL
!                    && (options[opt_idx].flags & (P_CURSWANT | P_RALL)) != 0)
        curwin->w_set_curswant = TRUE;
  
  #ifdef FEAT_GUI
***************
*** 8203,8209 ****
  
      comp_col();                           /* in case 'ruler' or 'showcmd' 
changed */
      if (curwin->w_curswant != MAXCOL
!                    && (options[opt_idx].flags & (P_CURSWANT | P_RCLR)) != 0)
        curwin->w_set_curswant = TRUE;
      check_redraw(options[opt_idx].flags);
  
--- 8203,8209 ----
  
      comp_col();                           /* in case 'ruler' or 'showcmd' 
changed */
      if (curwin->w_curswant != MAXCOL
!                    && (options[opt_idx].flags & (P_CURSWANT | P_RALL)) != 0)
        curwin->w_set_curswant = TRUE;
      check_redraw(options[opt_idx].flags);
  
***************
*** 8738,8744 ****
  
      comp_col();                           /* in case 'columns' or 'ls' 
changed */
      if (curwin->w_curswant != MAXCOL
!                    && (options[opt_idx].flags & (P_CURSWANT | P_RCLR)) != 0)
        curwin->w_set_curswant = TRUE;
      check_redraw(options[opt_idx].flags);
  
--- 8738,8744 ----
  
      comp_col();                           /* in case 'columns' or 'ls' 
changed */
      if (curwin->w_curswant != MAXCOL
!                    && (options[opt_idx].flags & (P_CURSWANT | P_RALL)) != 0)
        curwin->w_set_curswant = TRUE;
      check_redraw(options[opt_idx].flags);
  
*** ../vim-7.4.658/src/version.c        2015-03-08 14:48:32.959696341 +0100
--- src/version.c       2015-03-13 11:21:31.255788185 +0100
***************
*** 743,744 ****
--- 743,746 ----
  {   /* Add new patch number below this line */
+ /**/
+     659,
  /**/

-- 
"A mouse can be just as dangerous as a bullet or a bomb."
             (US Representative Lamar Smith, R-Texas)

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui