summaryrefslogtreecommitdiff
path: root/src/option.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/option.c')
-rw-r--r--src/option.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/option.c b/src/option.c
index 8543b48e0..2d47af3d1 100644
--- a/src/option.c
+++ b/src/option.c
@@ -8222,7 +8222,7 @@ set_option_value(name, number, string, opt_flags)
set_string_option(opt_idx, string, opt_flags);
else
{
- varp = get_varp(&options[opt_idx]);
+ varp = get_varp_scope(&(options[opt_idx]), opt_flags);
if (varp != NULL) /* hidden option is not changed */
{
if (number == 0 && string != NULL)