Skip to content

Commit 2242ed3

Browse files
author
Stephan Dilly
committed
fix help lacking
1 parent 9e1db3d commit 2242ed3

File tree

1 file changed

+42
-42
lines changed

1 file changed

+42
-42
lines changed

src/tabs/status.rs

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -262,57 +262,57 @@ impl Component for Status {
262262
out: &mut Vec<CommandInfo>,
263263
force_all: bool,
264264
) -> CommandBlocking {
265-
if self.visible {
265+
if self.visible || force_all {
266266
command_pump(
267267
out,
268268
force_all,
269269
self.components().as_slice(),
270270
);
271+
}
271272

272-
{
273-
let focus_on_diff = self.focus == Focus::Diff;
274-
out.push(CommandInfo::new(
275-
commands::STATUS_FOCUS_LEFT,
276-
true,
277-
(self.visible && focus_on_diff) || force_all,
278-
));
279-
out.push(CommandInfo::new(
280-
commands::STATUS_FOCUS_RIGHT,
281-
self.can_focus_diff(),
282-
(self.visible && !focus_on_diff) || force_all,
283-
));
284-
}
273+
{
274+
let focus_on_diff = self.focus == Focus::Diff;
275+
out.push(CommandInfo::new(
276+
commands::STATUS_FOCUS_LEFT,
277+
true,
278+
(self.visible && focus_on_diff) || force_all,
279+
));
280+
out.push(CommandInfo::new(
281+
commands::STATUS_FOCUS_RIGHT,
282+
self.can_focus_diff(),
283+
(self.visible && !focus_on_diff) || force_all,
284+
));
285+
}
285286

286-
out.push(
287-
CommandInfo::new(
288-
commands::SELECT_STATUS,
289-
true,
290-
(self.visible && self.focus == Focus::Diff)
291-
|| force_all,
292-
)
293-
.hidden(),
294-
);
287+
out.push(
288+
CommandInfo::new(
289+
commands::SELECT_STATUS,
290+
true,
291+
(self.visible && self.focus == Focus::Diff)
292+
|| force_all,
293+
)
294+
.hidden(),
295+
);
295296

296-
out.push(
297-
CommandInfo::new(
298-
commands::SELECT_STAGING,
299-
true,
300-
(self.visible && self.focus == Focus::WorkDir)
301-
|| force_all,
302-
)
303-
.order(-2),
304-
);
297+
out.push(
298+
CommandInfo::new(
299+
commands::SELECT_STAGING,
300+
true,
301+
(self.visible && self.focus == Focus::WorkDir)
302+
|| force_all,
303+
)
304+
.order(-2),
305+
);
305306

306-
out.push(
307-
CommandInfo::new(
308-
commands::SELECT_UNSTAGED,
309-
true,
310-
(self.visible && self.focus == Focus::Stage)
311-
|| force_all,
312-
)
313-
.order(-2),
314-
);
315-
}
307+
out.push(
308+
CommandInfo::new(
309+
commands::SELECT_UNSTAGED,
310+
true,
311+
(self.visible && self.focus == Focus::Stage)
312+
|| force_all,
313+
)
314+
.order(-2),
315+
);
316316

317317
visibility_blocking(self)
318318
}

0 commit comments

Comments
 (0)