mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.2-103
This commit is contained in:
parent
4e2a59505e
commit
1f26d2f57f
47
src/option.c
47
src/option.c
@ -5268,6 +5268,21 @@ insecure_flag(opt_idx, opt_flags)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef FEAT_TITLE
|
||||||
|
static void redraw_titles __ARGS((void));
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Redraw the window title and/or tab page text later.
|
||||||
|
*/
|
||||||
|
static void redraw_titles()
|
||||||
|
{
|
||||||
|
need_maketitle = TRUE;
|
||||||
|
# ifdef FEAT_WINDOWS
|
||||||
|
redraw_tabline = TRUE;
|
||||||
|
# endif
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set a string option to a new value (without checking the effect).
|
* Set a string option to a new value (without checking the effect).
|
||||||
* The string is copied into allocated memory.
|
* The string is copied into allocated memory.
|
||||||
@ -5672,7 +5687,7 @@ did_set_string_option(opt_idx, varp, new_value_alloced, oldval, errbuf,
|
|||||||
{
|
{
|
||||||
# ifdef FEAT_TITLE
|
# ifdef FEAT_TITLE
|
||||||
/* May show a "+" in the title now. */
|
/* May show a "+" in the title now. */
|
||||||
need_maketitle = TRUE;
|
redraw_titles();
|
||||||
# endif
|
# endif
|
||||||
/* Add 'fileencoding' to the swap file. */
|
/* Add 'fileencoding' to the swap file. */
|
||||||
ml_setflags(curbuf);
|
ml_setflags(curbuf);
|
||||||
@ -5691,7 +5706,7 @@ did_set_string_option(opt_idx, varp, new_value_alloced, oldval, errbuf,
|
|||||||
{
|
{
|
||||||
errmsg = mb_init();
|
errmsg = mb_init();
|
||||||
# ifdef FEAT_TITLE
|
# ifdef FEAT_TITLE
|
||||||
need_maketitle = TRUE;
|
redraw_titles();
|
||||||
# endif
|
# endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -5800,7 +5815,7 @@ did_set_string_option(opt_idx, varp, new_value_alloced, oldval, errbuf,
|
|||||||
else
|
else
|
||||||
curbuf->b_p_tx = FALSE;
|
curbuf->b_p_tx = FALSE;
|
||||||
#ifdef FEAT_TITLE
|
#ifdef FEAT_TITLE
|
||||||
need_maketitle = TRUE;
|
redraw_titles();
|
||||||
#endif
|
#endif
|
||||||
/* update flag in swap file */
|
/* update flag in swap file */
|
||||||
ml_setflags(curbuf);
|
ml_setflags(curbuf);
|
||||||
@ -7127,22 +7142,28 @@ set_bool_option(opt_idx, varp, value, opt_flags)
|
|||||||
curbuf->b_did_warn = FALSE;
|
curbuf->b_did_warn = FALSE;
|
||||||
|
|
||||||
#ifdef FEAT_TITLE
|
#ifdef FEAT_TITLE
|
||||||
need_maketitle = TRUE;
|
redraw_titles();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef FEAT_TITLE
|
#ifdef FEAT_TITLE
|
||||||
/* when 'modifiable' is changed, redraw the window title */
|
/* when 'modifiable' is changed, redraw the window title */
|
||||||
else if ((int *)varp == &curbuf->b_p_ma)
|
else if ((int *)varp == &curbuf->b_p_ma)
|
||||||
need_maketitle = TRUE;
|
{
|
||||||
|
redraw_titles();
|
||||||
|
}
|
||||||
/* when 'endofline' is changed, redraw the window title */
|
/* when 'endofline' is changed, redraw the window title */
|
||||||
else if ((int *)varp == &curbuf->b_p_eol)
|
else if ((int *)varp == &curbuf->b_p_eol)
|
||||||
need_maketitle = TRUE;
|
{
|
||||||
#ifdef FEAT_MBYTE
|
redraw_titles();
|
||||||
/* when 'bomb' is changed, redraw the window title */
|
}
|
||||||
|
# ifdef FEAT_MBYTE
|
||||||
|
/* when 'bomb' is changed, redraw the window title and tab page text */
|
||||||
else if ((int *)varp == &curbuf->b_p_bomb)
|
else if ((int *)varp == &curbuf->b_p_bomb)
|
||||||
need_maketitle = TRUE;
|
{
|
||||||
#endif
|
redraw_titles();
|
||||||
|
}
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* when 'bin' is set also set some other options */
|
/* when 'bin' is set also set some other options */
|
||||||
@ -7150,7 +7171,7 @@ set_bool_option(opt_idx, varp, value, opt_flags)
|
|||||||
{
|
{
|
||||||
set_options_bin(old_value, curbuf->b_p_bin, opt_flags);
|
set_options_bin(old_value, curbuf->b_p_bin, opt_flags);
|
||||||
#ifdef FEAT_TITLE
|
#ifdef FEAT_TITLE
|
||||||
need_maketitle = TRUE;
|
redraw_titles();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -7301,7 +7322,7 @@ set_bool_option(opt_idx, varp, value, opt_flags)
|
|||||||
if (!value)
|
if (!value)
|
||||||
save_file_ff(curbuf); /* Buffer is unchanged */
|
save_file_ff(curbuf); /* Buffer is unchanged */
|
||||||
#ifdef FEAT_TITLE
|
#ifdef FEAT_TITLE
|
||||||
need_maketitle = TRUE;
|
redraw_titles();
|
||||||
#endif
|
#endif
|
||||||
#ifdef FEAT_AUTOCMD
|
#ifdef FEAT_AUTOCMD
|
||||||
modified_was_set = value;
|
modified_was_set = value;
|
||||||
@ -7736,7 +7757,7 @@ set_num_option(opt_idx, varp, value, errbuf, errbuflen, opt_flags)
|
|||||||
newFoldLevel();
|
newFoldLevel();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 'foldminlevel' */
|
/* 'foldminlines' */
|
||||||
else if (pp == &curwin->w_p_fml)
|
else if (pp == &curwin->w_p_fml)
|
||||||
{
|
{
|
||||||
foldUpdateAll(curwin);
|
foldUpdateAll(curwin);
|
||||||
|
@ -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 */
|
||||||
|
/**/
|
||||||
|
103,
|
||||||
/**/
|
/**/
|
||||||
102,
|
102,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user