diff options
author | Canop <cano.petrole@gmail.com> | 2021-04-20 08:06:46 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2021-04-20 08:06:46 +0200 |
commit | e1bc9547cc0aae6652a62c0ca2187ded9acb03a8 (patch) | |
tree | 972e84a0f80876dd7dd8c54b48c7418fea17c5ff /src/command | |
parent | 040c173bb47bf3ac4e97fbca0b7a8adba5051642 (diff) |
modal: '/' never appended to input if used to enter input mode
Diffstat (limited to 'src/command')
-rw-r--r-- | src/command/panel_input.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command/panel_input.rs b/src/command/panel_input.rs index b2f6c7d..0cd89f7 100644 --- a/src/command/panel_input.rs +++ b/src/command/panel_input.rs @@ -134,7 +134,7 @@ impl PanelInput { ) { if let Some(c) = keys::as_letter(key) { let add = match c { - '/' if !parts.raw_pattern.is_empty() => true, + // '/' if !parts.raw_pattern.is_empty() => true, ' ' if parts.verb_invocation.is_none() => true, ':' if parts.verb_invocation.is_none() => true, _ => false, @@ -270,7 +270,7 @@ impl PanelInput { return Command::from_raw(self.input_field.get_content(), false); } if verb.selection_condition.is_respected_by(sel_info.common_stype()) { - if verb.is_internal(Internal::mode_input) { + if mode != Mode::Input && verb.is_internal(Internal::mode_input) { self.enter_input_mode_with_key(key, &parts); } return Command::VerbTrigger { |