diff options
| author | denis <denismaximov98@gmail.com> | 2021-03-28 10:51:15 +0300 |
|---|---|---|
| committer | denis <denismaximov98@gmail.com> | 2021-03-28 10:51:15 +0300 |
| commit | 42890d4e64f8176e20dd5f2fc8e87087bb9978f9 (patch) | |
| tree | 27fa6188eca64decad3aaf2b360e4634a0ae0abe /src/common/input | |
| parent | wip: move Palette out of zellij-tile (diff) | |
| download | sl0ppij-42890d4e64f8176e20dd5f2fc8e87087bb9978f9.tar.gz sl0ppij-42890d4e64f8176e20dd5f2fc8e87087bb9978f9.tar.xz sl0ppij-42890d4e64f8176e20dd5f2fc8e87087bb9978f9.zip | |
wip: replace the impl with a fn load_palette instead
Diffstat (limited to 'src/common/input')
| -rw-r--r-- | src/common/input/handler.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/input/handler.rs b/src/common/input/handler.rs index 385c1453..163e5ddf 100644 --- a/src/common/input/handler.rs +++ b/src/common/input/handler.rs @@ -2,7 +2,7 @@ use super::actions::Action; use super::keybinds::get_default_keybinds; -use crate::common::{AppInstruction, Palette, SenderWithContext, OPENCALLS}; +use crate::common::{load_palette, AppInstruction, SenderWithContext, OPENCALLS}; use crate::errors::ContextType; use crate::os_input_output::OsApi; use crate::pty_bus::PtyInstruction; @@ -256,7 +256,7 @@ impl InputHandler { // TODO this should probably be automatically generated in some way pub fn get_mode_info(mode: InputMode) -> ModeInfo { let mut keybinds: Vec<(String, String)> = vec![]; - let mut palette = Palette::new(); + let mut palette = load_palette(); match mode { InputMode::Normal | InputMode::Locked => {} InputMode::Resize => { |
