diff --git a/src/tui/app/machine/input.rs b/src/tui/app/machine/input.rs index 169bf58..5653cf9 100644 --- a/src/tui/app/machine/input.rs +++ b/src/tui/app/machine/input.rs @@ -24,14 +24,14 @@ impl IAppInput for AppInputMode { self.app } - fn confirm(self) -> Self::APP { - self.cancel() - } - - fn cancel(mut self) -> Self::APP { + fn confirm(mut self) -> Self::APP { if let AppState::Match(state) = &mut self.app { state.submit_input(self.input) }; self.app } + + fn cancel(self) -> Self::APP { + self.app + } }