diff options
author | Canop <cano.petrole@gmail.com> | 2021-04-26 21:07:41 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2021-04-26 21:07:41 +0200 |
commit | 679afd0b48c6990413e310e6d4318f7ce94cf76e (patch) | |
tree | 6d60e8dfb62d6884e8d21b17d38129ed19c99a1a /src/stage | |
parent | 1a2014aa856e95176e4ad16497c81ad76ab2b71c (diff) |
better check of verb conditions, sequences not allowed on SA
The execution of a verb can have many different side effects
affecting the execution of a following one: a verb can (un)stage,
change files, change their types, change the focused panel, etc.
It's too hard to reason about all those effects, and this can't
be expected from the user. So, at least for now, I forbid sequence
execution on multiple files.
Diffstat (limited to 'src/stage')
-rw-r--r-- | src/stage/stage_state.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/stage/stage_state.rs b/src/stage/stage_state.rs index a6de958..4fac8c8 100644 --- a/src/stage/stage_state.rs +++ b/src/stage/stage_state.rs @@ -440,17 +440,5 @@ impl PanelState for StageState { )?, }) } - - fn execute_sequence( - &mut self, - _w: &mut W, - _verb: &Verb, - _seq_ex: &SequenceExecution, - _invocation: Option<&VerbInvocation>, - _app_state: &mut AppState, - _cc: &CmdContext, - ) -> Result<CmdResult, ProgramError> { - Ok(CmdResult::error("sequence execution not yet implemented on staging area")) - } } |