diff options
author | Canop <cano.petrole@gmail.com> | 2021-06-13 16:45:44 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2021-06-13 16:45:44 +0200 |
commit | dec7324fd505e41decf152492ae4942ffed36db0 (patch) | |
tree | 0caf0e1e5ce0f0a0191914527a3b5307850a976a /src/command | |
parent | 442e304c3f3ca867d09103301efee42da7ea969f (diff) |
`{root}` verb argument
Fix #395
Diffstat (limited to 'src/command')
-rw-r--r-- | src/command/panel_input.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/command/panel_input.rs b/src/command/panel_input.rs index 462ed80..ff0c9cd 100644 --- a/src/command/panel_input.rs +++ b/src/command/panel_input.rs @@ -73,9 +73,10 @@ impl PanelInput { event: Event, con: &AppContext, sel_info: SelInfo<'_>, + app_state: &AppState, mode: Mode, ) -> Result<Command, ProgramError> { - let cmd = self.get_command(event, con, sel_info, mode); + let cmd = self.get_command(event, con, sel_info, app_state, mode); self.input_field.display_on(w)?; Ok(cmd) } @@ -161,6 +162,7 @@ impl PanelInput { event: Event, con: &AppContext, sel_info: SelInfo<'_>, + app_state: &AppState, mode: Mode, ) -> Command { match event { @@ -294,6 +296,7 @@ impl PanelInput { if let Some(invocation_parser) = &verb.invocation_parser { let exec_builder = ExecutionStringBuilder::without_invocation( sel_info, + app_state, ); let verb_invocation = exec_builder.invocation_with_default( &invocation_parser.invocation_pattern |