diff --git a/src/app.rs b/src/app.rs index c61d4ff..6051c5c 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1937,7 +1937,7 @@ impl App { } fn switch_mode_custom(mut self, mode: &str) -> Result { - if let Some(mode) = self.config().modes().clone().get(mode) { + if let Some(mode) = self.config().modes().clone().get_custom(mode) { self.input_buffer = None; self.mode = mode .to_owned()