Skip to content

Commit c139249

Browse files
author
Stephan Dilly
committed
do not show commit if not available
1 parent 813e163 commit c139249

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/tabs/status.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -640,13 +640,11 @@ impl Component for Status {
640640
self.components().as_slice(),
641641
);
642642

643-
let can_commit =
644-
self.index.focused() && !self.index.is_empty();
645643
out.push(
646644
CommandInfo::new(
647645
strings::commands::commit_open(&self.key_config),
648646
true,
649-
can_commit || force_all,
647+
self.can_commit() || force_all,
650648
)
651649
.order(-1),
652650
);

0 commit comments

Comments
 (0)