Lines Matching refs:opt_flags
38 static void set_options_default(int opt_flags);
45 static long_u *insecure_flag(int opt_idx, int opt_flags);
47 # define insecure_flag(opt_idx, opt_flags) (&options[opt_idx].flags) argument
49 static char *set_bool_option(int opt_idx, char_u *varp, int value, int opt_flags);
50 …t_num_option(int opt_idx, char_u *varp, long value, char *errbuf, size_t errbuflen, int opt_flags);
52 static void showoptions(int all, int opt_flags);
54 static void showoneopt(struct vimoption *, int opt_flags);
59 static char_u *get_varp_scope(struct vimoption *p, int opt_flags);
62 static void option_value2string(struct vimoption *, int opt_flags);
558 int opt_flags, // OPT_FREE, OPT_LOCAL and/or OPT_GLOBAL in set_option_default() argument
565 int both = (opt_flags & (OPT_LOCAL | OPT_GLOBAL)) == 0; in set_option_default()
567 varp = get_varp_scope(&(options[opt_idx]), both ? OPT_LOCAL : opt_flags); in set_option_default()
581 options[opt_idx].def_val[dvi], opt_flags, 0); in set_option_default()
584 if ((opt_flags & OPT_FREE) && (flags & P_ALLOCED)) in set_option_default()
628 flagsp = insecure_flag(opt_idx, opt_flags); in set_option_default()
633 set_option_sctx_idx(opt_idx, opt_flags, current_sctx); in set_option_default()
643 int opt_flags) // OPT_FREE, OPT_LOCAL and/or OPT_GLOBAL in set_options_default() argument
651 && (opt_flags == 0 in set_options_default()
658 set_option_default(i, opt_flags, p_cp); in set_options_default()
1235 int opt_flags) in do_set() argument
1260 showoptions(0, opt_flags); in do_set()
1271 && !(opt_flags & OPT_MODELINE)) in do_set()
1282 set_options_default(OPT_FREE | opt_flags); in do_set()
1289 showoptions(1, opt_flags); in do_set()
1293 else if (STRNCMP(arg, "termcap", 7) == 0 && !(opt_flags & OPT_MODELINE)) in do_set()
1295 showoptions(2, opt_flags); in do_set()
1429 varp = get_varp_scope(&(options[opt_idx]), opt_flags); in do_set()
1448 if ((opt_flags & OPT_WINONLY) in do_set()
1453 if ((opt_flags & OPT_NOWIN) && opt_idx >= 0 in do_set()
1458 if (opt_flags & OPT_MODELINE) in do_set()
1540 showoneopt(&options[opt_idx], opt_flags); in do_set()
1601 && opt_flags == OPT_LOCAL) in do_set()
1625 opt_flags); in do_set()
1657 && opt_flags == OPT_LOCAL) in do_set()
1704 errbuf, sizeof(errbuf), opt_flags); in do_set()
1729 if ((opt_flags & (OPT_LOCAL | OPT_GLOBAL)) == 0 in do_set()
1737 if ((opt_flags & (OPT_LOCAL | OPT_GLOBAL)) == 0) in do_set()
1755 && (opt_flags & OPT_LOCAL)) in do_set()
2096 long_u *p = insecure_flag(opt_idx, opt_flags); in do_set()
2104 if ((opt_flags & OPT_MODELINE) in do_set()
2118 opt_flags, &value_checked); in do_set()
2126 opt_idx, opt_flags, saved_origval, in do_set()
2166 opt_idx, opt_flags, value_is_replaced, value_checked); in do_set()
2234 int opt_flags, // possibly with OPT_MODELINE in did_set_option() argument
2246 p = insecure_flag(opt_idx, opt_flags); in did_set_option()
2251 || (opt_flags & OPT_MODELINE))) in did_set_option()
2300 int opt_flags) // OPT_LOCAL and/or OPT_GLOBAL in set_options_bin() argument
2310 if (!(opt_flags & OPT_GLOBAL)) in set_options_bin()
2317 if (!(opt_flags & OPT_LOCAL)) in set_options_bin()
2326 if (!(opt_flags & OPT_GLOBAL)) in set_options_bin()
2333 if (!(opt_flags & OPT_LOCAL)) in set_options_bin()
2344 if (!(opt_flags & OPT_GLOBAL)) in set_options_bin()
2351 if (!(opt_flags & OPT_LOCAL)) in set_options_bin()
2508 was_set_insecurely(char_u *opt, int opt_flags) in was_set_insecurely() argument
2515 flagp = insecure_flag(idx, opt_flags); in was_set_insecurely()
2529 insecure_flag(int opt_idx, int opt_flags) in insecure_flag() argument
2531 if (opt_flags & OPT_LOCAL) in insecure_flag()
2592 set_option_sctx_idx(int opt_idx, int opt_flags, sctx_T script_ctx) in set_option_sctx_idx() argument
2594 int both = (opt_flags & (OPT_LOCAL | OPT_GLOBAL)) == 0; in set_option_sctx_idx()
2599 if (!(opt_flags & OPT_MODELINE)) in set_option_sctx_idx()
2604 if (both || (opt_flags & OPT_GLOBAL) || (indir & (PV_BUF|PV_WIN)) == 0) in set_option_sctx_idx()
2606 if (both || (opt_flags & OPT_LOCAL)) in set_option_sctx_idx()
2649 long opt_flags, in apply_optionset_autocmd() argument
2666 (opt_flags & OPT_LOCAL) ? "local" : "global"); in apply_optionset_autocmd()
2670 if (opt_flags & OPT_LOCAL) in apply_optionset_autocmd()
2675 if (opt_flags & OPT_GLOBAL) in apply_optionset_autocmd()
2680 if ((opt_flags & (OPT_LOCAL | OPT_GLOBAL)) == 0) in apply_optionset_autocmd()
2686 if (opt_flags & OPT_MODELINE) in apply_optionset_autocmd()
2706 int opt_flags) // OPT_LOCAL and/or OPT_GLOBAL in set_bool_option() argument
2725 if ((opt_flags & (OPT_LOCAL | OPT_GLOBAL)) == 0) in set_bool_option()
2733 set_option_sctx_idx(opt_idx, opt_flags, current_sctx); in set_bool_option()
2741 if ((opt_flags & (OPT_LOCAL | OPT_GLOBAL)) == 0) in set_bool_option()
2785 || (opt_flags & OPT_GLOBAL) || opt_flags == 0) in set_bool_option()
2804 if (!curbuf->b_p_ro && (opt_flags & OPT_LOCAL) == 0) in set_bool_option()
2861 set_options_bin(old_value, curbuf->b_p_bin, opt_flags); in set_bool_option()
2976 set_fileformat(curbuf->b_p_tx ? EOL_DOS : EOL_UNIX, opt_flags); in set_bool_option()
2984 OPT_FREE | opt_flags, 0); in set_bool_option()
3278 apply_optionset_autocmd(opt_idx, opt_flags, in set_bool_option()
3289 if ((opt_flags & OPT_NO_REDRAW) == 0) in set_bool_option()
3306 int opt_flags) // OPT_LOCAL, OPT_GLOBAL, in set_num_option() argument
3331 if ((opt_flags & (OPT_LOCAL | OPT_GLOBAL)) == 0) in set_num_option()
3339 set_option_sctx_idx(opt_idx, opt_flags, current_sctx); in set_num_option()
3834 if ((opt_flags & (OPT_LOCAL | OPT_GLOBAL)) == 0) in set_num_option()
3840 apply_optionset_autocmd(opt_idx, opt_flags, old_value, old_global_value, in set_num_option()
3848 if ((opt_flags & OPT_NO_REDRAW) == 0) in set_num_option()
3966 int opt_flags) in get_option_value() argument
4004 varp = get_varp_scope(&(options[opt_idx]), opt_flags); in get_option_value()
4332 int opt_flags) // OPT_LOCAL or 0 (both) in set_option_value() argument
4379 return set_string_option(opt_idx, string, opt_flags); in set_option_value()
4382 varp = get_varp_scope(&(options[opt_idx]), opt_flags); in set_option_value()
4406 NULL, 0, opt_flags); in set_option_value()
4409 opt_flags); in set_option_value()
4499 int opt_flags) // OPT_LOCAL and/or OPT_GLOBAL in showoptions() argument
4523 else if (opt_flags & OPT_GLOBAL) in showoptions()
4525 else if (opt_flags & OPT_LOCAL) in showoptions()
4550 if ((opt_flags & (OPT_LOCAL | OPT_GLOBAL)) != 0) in showoptions()
4553 varp = get_varp_scope(p, opt_flags); in showoptions()
4562 if (opt_flags & OPT_ONECOLUMN) in showoptions()
4568 option_value2string(p, opt_flags); in showoptions()
4598 showoneopt(items[i], opt_flags); in showoptions()
4636 int opt_flags) // OPT_LOCAL or OPT_GLOBAL in showoneopt() argument
4644 varp = get_varp_scope(p, opt_flags); in showoneopt()
4659 option_value2string(p, opt_flags); in showoneopt()
4690 makeset(FILE *fd, int opt_flags, int local_only) in makeset() argument
4714 if (p->indir == PV_NONE && !(opt_flags & OPT_GLOBAL)) in makeset()
4719 if ((opt_flags & OPT_GLOBAL) && (p->flags & P_NOGLOB)) in makeset()
4723 varp = get_varp_scope(p, opt_flags); in makeset()
4724 if ((opt_flags & OPT_GLOBAL) && optval_default(p, varp, p_cp)) in makeset()
4727 if ((opt_flags & OPT_SKIPRTP) && (p->var == (char_u *)&p_rtp in makeset()
4737 if (!(opt_flags & OPT_LOCAL)) in makeset()
4741 if (!(opt_flags & OPT_GLOBAL) && !local_only) in makeset()
4758 if (round == 1 || (opt_flags & OPT_GLOBAL)) in makeset()
5206 get_varp_scope(struct vimoption *p, int opt_flags) in get_varp_scope() argument
5208 if ((opt_flags & OPT_GLOBAL) && p->indir != PV_NONE) in get_varp_scope()
5214 if ((opt_flags & OPT_LOCAL) && ((int)p->indir & PV_BOTH)) in get_varp_scope()
5273 get_option_varp_scope(int opt_idx, int opt_flags) in get_option_varp_scope() argument
5275 return get_varp_scope(&(options[opt_idx]), opt_flags); in get_option_varp_scope()
6211 int opt_flags) // OPT_GLOBAL and/or OPT_LOCAL in set_context_in_set_cmd() argument
6221 expand_option_flags = opt_flags; in set_context_in_set_cmd()
6640 int opt_flags) // OPT_GLOBAL and/or OPT_LOCAL in option_value2string() argument
6644 varp = get_varp_scope(opp, opt_flags); in option_value2string()