1
0
forked from aniani/vim

updated for version 7.2-242

This commit is contained in:
Bram Moolenaar
2009-07-29 13:42:05 +00:00
parent 6bef63c651
commit 801f8b865c
2 changed files with 19 additions and 2 deletions

View File

@@ -7194,6 +7194,14 @@ set_bool_option(opt_idx, varp, value, opt_flags)
compatible_set(); compatible_set();
} }
/* 'list', 'number' */
else if ((int *)varp == &curwin->w_p_list
|| (int *)varp == &curwin->w_p_nu)
{
if (curwin->w_curswant != MAXCOL)
curwin->w_set_curswant = TRUE;
}
else if ((int *)varp == &curbuf->b_p_ro) else if ((int *)varp == &curbuf->b_p_ro)
{ {
/* when 'readonly' is reset globally, also reset readonlymode */ /* when 'readonly' is reset globally, also reset readonlymode */
@@ -7645,6 +7653,14 @@ set_bool_option(opt_idx, varp, value, opt_flags)
curbuf->b_p_imsearch = B_IMODE_USE_INSERT; curbuf->b_p_imsearch = B_IMODE_USE_INSERT;
# endif # endif
} }
if (curwin->w_curswant != MAXCOL)
curwin->w_set_curswant = TRUE;
}
else if ((int *)varp == &p_arshape)
{
if (curwin->w_curswant != MAXCOL)
curwin->w_set_curswant = TRUE;
} }
#endif #endif
@@ -7655,8 +7671,7 @@ set_bool_option(opt_idx, varp, value, opt_flags)
options[opt_idx].flags |= P_WAS_SET; options[opt_idx].flags |= P_WAS_SET;
comp_col(); /* in case 'ruler' or 'showcmd' changed */ comp_col(); /* in case 'ruler' or 'showcmd' changed */
if (curwin->w_curswant != MAXCOL)
curwin->w_set_curswant = TRUE; /* in case 'list' changed */
check_redraw(options[opt_idx].flags); check_redraw(options[opt_idx].flags);
return NULL; return NULL;

View File

@@ -676,6 +676,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
242,
/**/ /**/
241, 241,
/**/ /**/