diff options
Diffstat (limited to 'src/session.cc')
-rw-r--r-- | src/session.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/session.cc b/src/session.cc index 9d1a23f4..3c6b6ddb 100644 --- a/src/session.cc +++ b/src/session.cc @@ -258,6 +258,10 @@ expr_t::ptr_op_t session_t::lookup(const string& name) break; } + // Check if they are trying to access an option's setting or value. + if (option_t<session_t> * handler = lookup_option(p)) + return MAKE_OPT_FUNCTOR(session_t, handler); + return symbol_scope_t::lookup(name); } |