diff options
| author | Maxime Coste <mawww@kakoune.org> | 2024-04-11 11:37:18 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2024-04-12 15:28:40 +1000 |
| commit | 3d7d0fecca885b00a7ae80180ea1841fab2c5993 (patch) | |
| tree | 94218f4a6dab3f448ceaff034e51079a0ecc2e3c /src/option_manager.hh | |
| parent | b1c114bf6d950684df0524e450782a151e6a0323 (diff) | |
Introduce "local" scope in evaluate-commands
When using `eval` a new scope named 'local' gets pushed for the
whole evaluation, this makes it possible to temporarily set
an option/hook/alias...
Local scopes nest so nested evals do work as expected.
Remove the now trivial with-option command
Diffstat (limited to 'src/option_manager.hh')
| -rw-r--r-- | src/option_manager.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/option_manager.hh b/src/option_manager.hh index e4dc230f..3a4bb5a5 100644 --- a/src/option_manager.hh +++ b/src/option_manager.hh @@ -89,6 +89,8 @@ public: OptionManager(OptionManager& parent); ~OptionManager(); + void reparent(OptionManager& parent); + Option& operator[] (StringView name); const Option& operator[] (StringView name) const; Option& get_local_option(StringView name); |
