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/mod.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/mod.rs')
| -rw-r--r-- | src/common/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/mod.rs b/src/common/mod.rs index e895fcc0..a566d655 100644 --- a/src/common/mod.rs +++ b/src/common/mod.rs @@ -37,7 +37,7 @@ use wasm_vm::PluginEnv; use wasm_vm::{wasi_stdout, wasi_write_string, zellij_imports, PluginInstruction}; use wasmer::{ChainableNamedResolver, Instance, Module, Store, Value}; use wasmer_wasi::{Pipe, WasiState}; -use zellij_tile::data::{EventType, InputMode}; +use zellij_tile::data::{EventType, ModeInfo}; #[derive(Serialize, Deserialize, Debug)] pub enum ApiCommand { @@ -256,7 +256,7 @@ pub fn start(mut os_input: Box<dyn OsApi>, opts: CliArgs) { &full_screen_ws, os_input, max_panes, - InputMode::Normal, + ModeInfo::default(), ); loop { let (event, mut err_ctx) = screen @@ -389,8 +389,8 @@ pub fn start(mut os_input: Box<dyn OsApi>, opts: CliArgs) { ScreenInstruction::UpdateTabName(c) => { screen.update_active_tab_name(c); } - ScreenInstruction::ChangeInputMode(input_mode) => { - screen.change_input_mode(input_mode); + ScreenInstruction::ChangeMode(mode_info) => { + screen.change_mode(mode_info); } ScreenInstruction::Quit => { break; |
