diff options
| author | Brooks J Rady <b.j.rady@gmail.com> | 2021-03-31 12:13:00 +0100 |
|---|---|---|
| committer | Brooks J Rady <b.j.rady@gmail.com> | 2021-03-31 12:13:00 +0100 |
| commit | 138ba850ebf7df02526990f428207e0f8ec48ece (patch) | |
| tree | 464abc4497e68e0a92ad83da4b2d6403dfd4d427 /src/common/errors.rs | |
| parent | feat(plugin): refactored to a new and more general plugin API (diff) | |
| download | sl0ppij-138ba850ebf7df02526990f428207e0f8ec48ece.tar.gz sl0ppij-138ba850ebf7df02526990f428207e0f8ec48ece.tar.xz sl0ppij-138ba850ebf7df02526990f428207e0f8ec48ece.zip | |
fix(plugin): send mode updates to subscribed plugins on load
Diffstat (limited to 'src/common/errors.rs')
| -rw-r--r-- | src/common/errors.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/errors.rs b/src/common/errors.rs index f5aeae85..56bf27f4 100644 --- a/src/common/errors.rs +++ b/src/common/errors.rs @@ -200,7 +200,7 @@ pub enum ScreenContext { CloseTab, GoToTab, UpdateTabName, - ChangeInputMode, + ChangeMode, } // FIXME: Just deriving EnumDiscriminants from strum will remove the need for any of this!!! @@ -241,7 +241,7 @@ impl From<&ScreenInstruction> for ScreenContext { ScreenInstruction::CloseTab => ScreenContext::CloseTab, ScreenInstruction::GoToTab(_) => ScreenContext::GoToTab, ScreenInstruction::UpdateTabName(_) => ScreenContext::UpdateTabName, - ScreenInstruction::ChangeInputMode(_) => ScreenContext::ChangeInputMode, + ScreenInstruction::ChangeMode(_) => ScreenContext::ChangeMode, } } } |
