mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-25 12:36:11 +03:00
Move option_not_found exception to the cpp file
This commit is contained in:
parent
bbefde9379
commit
720c54c759
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user