diff options
| author | a-kenji <aks.kenji@protonmail.com> | 2021-05-12 13:32:39 +0200 |
|---|---|---|
| committer | a-kenji <aks.kenji@protonmail.com> | 2021-05-12 15:27:28 +0200 |
| commit | 776a2c5151f768bfa40fda7471258527c106dd85 (patch) | |
| tree | ea9c4f5b93f5f9ca9a517dd146f69b1817bc0a60 /src/common/input/handler.rs | |
| parent | docs(changelog): compatibility update (diff) | |
| download | sl0ppij-776a2c5151f768bfa40fda7471258527c106dd85.tar.gz sl0ppij-776a2c5151f768bfa40fda7471258527c106dd85.tar.xz sl0ppij-776a2c5151f768bfa40fda7471258527c106dd85.zip | |
Fix Simplified Ui
Propagate the config now, in all the places, as opposed to
fallback to a default.
Diffstat (limited to 'src/common/input/handler.rs')
| -rw-r--r-- | src/common/input/handler.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/common/input/handler.rs b/src/common/input/handler.rs index 68a75448..b3bbbd0c 100644 --- a/src/common/input/handler.rs +++ b/src/common/input/handler.rs @@ -147,9 +147,12 @@ impl InputHandler { /// Creates a [`Help`] struct indicating the current [`InputMode`] and its keybinds /// (as pairs of [`String`]s). // TODO this should probably be automatically generated in some way -pub fn get_mode_info(mode: InputMode, palette: Palette) -> ModeInfo { +pub fn get_mode_info( + mode: InputMode, + palette: Palette, + capabilities: PluginCapabilities, +) -> ModeInfo { let mut keybinds: Vec<(String, String)> = vec![]; - let capabilities = PluginCapabilities { arrow_fonts: true }; match mode { InputMode::Normal | InputMode::Locked => {} InputMode::Resize => { |
