aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/errors.rs
diff options
context:
space:
mode:
authorBrooks J Rady <b.j.rady@gmail.com>2021-03-23 23:57:18 +0000
committerBrooks J Rady <b.j.rady@gmail.com>2021-03-23 23:57:18 +0000
commit23df8e447a1e73b8e3536fbf9781f1aafcee2765 (patch)
treeeb462c458798ca3ff14f79f1e23d4d22c115f456 /src/common/errors.rs
parentInitial implementation of the update callback + upstream termion (diff)
downloadsl0ppij-23df8e447a1e73b8e3536fbf9781f1aafcee2765.tar.gz
sl0ppij-23df8e447a1e73b8e3536fbf9781f1aafcee2765.tar.xz
sl0ppij-23df8e447a1e73b8e3536fbf9781f1aafcee2765.zip
Move most key handling to the update() + event system
Diffstat (limited to 'src/common/errors.rs')
-rw-r--r--src/common/errors.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/common/errors.rs b/src/common/errors.rs
index 11d13c7e..b12a57a1 100644
--- a/src/common/errors.rs
+++ b/src/common/errors.rs
@@ -281,7 +281,6 @@ pub enum PluginContext {
Update,
Render,
Input,
- GlobalInput,
Unload,
Quit,
Tabs,
@@ -291,10 +290,9 @@ impl From<&PluginInstruction> for PluginContext {
fn from(plugin_instruction: &PluginInstruction) -> Self {
match *plugin_instruction {
PluginInstruction::Load(..) => PluginContext::Load,
- PluginInstruction::Update(_) => PluginContext::Update,
+ PluginInstruction::Update(..) => PluginContext::Update,
PluginInstruction::Render(..) => PluginContext::Render,
PluginInstruction::Input(..) => PluginContext::Input,
- PluginInstruction::GlobalInput(_) => PluginContext::GlobalInput,
PluginInstruction::Unload(_) => PluginContext::Unload,
PluginInstruction::Quit => PluginContext::Quit,
PluginInstruction::UpdateTabs(..) => PluginContext::Tabs,