mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
updated for version 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.
This commit is contained in:
committed by
Douglas Drumond
parent
4c5a30e49c
commit
308f0eecac
+3
-3
@@ -7280,7 +7280,7 @@ did_set_string_option(opt_idx, varp, new_value_alloced, oldval, errbuf,
|
||||
#endif
|
||||
|
||||
if (curwin->w_curswant != MAXCOL
|
||||
&& (options[opt_idx].flags & (P_CURSWANT | P_RCLR)) != 0)
|
||||
&& (options[opt_idx].flags & (P_CURSWANT | P_RALL)) != 0)
|
||||
curwin->w_set_curswant = TRUE;
|
||||
|
||||
#ifdef FEAT_GUI
|
||||
@@ -8327,7 +8327,7 @@ set_bool_option(opt_idx, varp, value, opt_flags)
|
||||
|
||||
comp_col(); /* in case 'ruler' or 'showcmd' changed */
|
||||
if (curwin->w_curswant != MAXCOL
|
||||
&& (options[opt_idx].flags & (P_CURSWANT | P_RCLR)) != 0)
|
||||
&& (options[opt_idx].flags & (P_CURSWANT | P_RALL)) != 0)
|
||||
curwin->w_set_curswant = TRUE;
|
||||
check_redraw(options[opt_idx].flags);
|
||||
|
||||
@@ -8876,7 +8876,7 @@ set_num_option(opt_idx, varp, value, errbuf, errbuflen, opt_flags)
|
||||
|
||||
comp_col(); /* in case 'columns' or 'ls' changed */
|
||||
if (curwin->w_curswant != MAXCOL
|
||||
&& (options[opt_idx].flags & (P_CURSWANT | P_RCLR)) != 0)
|
||||
&& (options[opt_idx].flags & (P_CURSWANT | P_RALL)) != 0)
|
||||
curwin->w_set_curswant = TRUE;
|
||||
check_redraw(options[opt_idx].flags);
|
||||
|
||||
|
||||
@@ -756,6 +756,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
659,
|
||||
/**/
|
||||
658,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user