aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/input/handler.rs
diff options
context:
space:
mode:
authora-kenji <aks.kenji@protonmail.com>2021-05-12 13:32:39 +0200
committera-kenji <aks.kenji@protonmail.com>2021-05-12 15:27:28 +0200
commit776a2c5151f768bfa40fda7471258527c106dd85 (patch)
treeea9c4f5b93f5f9ca9a517dd146f69b1817bc0a60 /src/common/input/handler.rs
parentdocs(changelog): compatibility update (diff)
downloadsl0ppij-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.rs7
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 => {