From aae3d2c611dd40984d78aaf3e5f5371beb6b4b26 Mon Sep 17 00:00:00 2001 From: Stephan Dilly Date: Sun, 11 Oct 2020 01:00:02 +0200 Subject: [PATCH] better place for push cmd --- src/tabs/status.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/tabs/status.rs b/src/tabs/status.rs index 4596c9bd..d30a619f 100644 --- a/src/tabs/status.rs +++ b/src/tabs/status.rs @@ -378,6 +378,12 @@ impl Component for Status { true, true, )); + + out.push(CommandInfo::new( + strings::commands::status_push(&self.key_config), + self.index_wd.branch_name().is_some(), + true, + )); } { @@ -403,12 +409,6 @@ impl Component for Status { )); } - out.push(CommandInfo::new( - strings::commands::status_push(&self.key_config), - self.index_wd.branch_name().is_some(), - self.visible || force_all, - )); - out.push( CommandInfo::new( strings::commands::select_status(&self.key_config),