mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
updated for version 7.0218
This commit is contained in:
11
src/option.c
11
src/option.c
@@ -3774,9 +3774,11 @@ set_title_defaults()
|
||||
* does not need to be expanded with option_expand().
|
||||
* "opt_flags":
|
||||
* 0 for ":set"
|
||||
* OPT_GLOBAL for ":setglobal"
|
||||
* OPT_LOCAL for ":setlocal" and a modeline
|
||||
* OPT_GLOBAL for ":setglobal"
|
||||
* OPT_LOCAL for ":setlocal" and a modeline
|
||||
* OPT_MODELINE for a modeline
|
||||
* OPT_WINONLY to only set window-local options
|
||||
* OPT_NOWIN to skip setting window-local options
|
||||
*
|
||||
* returns FAIL if an error is detected, OK otherwise
|
||||
*/
|
||||
@@ -3977,6 +3979,11 @@ do_set(arg, opt_flags)
|
||||
&& (opt_idx < 0 || options[opt_idx].var != VAR_WIN))
|
||||
goto skip;
|
||||
|
||||
/* Skip all options that are window-local (used for :vimgrep). */
|
||||
if ((opt_flags & OPT_NOWIN) && opt_idx >= 0
|
||||
&& options[opt_idx].var == VAR_WIN)
|
||||
goto skip;
|
||||
|
||||
/* Disallow changing some options from modelines */
|
||||
if ((opt_flags & OPT_MODELINE) && (flags & P_SECURE))
|
||||
{
|
||||
|
Reference in New Issue
Block a user