diff --git a/src/option_manager.cc b/src/option_manager.cc index 34f30d92..2fba4546 100644 --- a/src/option_manager.cc +++ b/src/option_manager.cc @@ -39,6 +39,12 @@ void OptionManager::unregister_watcher(OptionManagerWatcher& watcher) m_watchers.erase(it); } +struct option_not_found : public runtime_error +{ + option_not_found(StringView name) + : runtime_error("option not found: " + name) {} +}; + Option& OptionManager::get_local_option(StringView name) { auto it = find_option(m_options, name); diff --git a/src/option_manager.hh b/src/option_manager.hh index ad295fb4..ec56cf10 100644 --- a/src/option_manager.hh +++ b/src/option_manager.hh @@ -12,12 +12,6 @@ namespace Kakoune { -struct option_not_found : public runtime_error -{ - option_not_found(StringView name) - : runtime_error("option not found: " + name) {} -}; - class OptionManager; enum class OptionFlags