@@ -262,57 +262,57 @@ impl Component for Status {
262
262
out : & mut Vec < CommandInfo > ,
263
263
force_all : bool ,
264
264
) -> CommandBlocking {
265
- if self . visible {
265
+ if self . visible || force_all {
266
266
command_pump (
267
267
out,
268
268
force_all,
269
269
self . components ( ) . as_slice ( ) ,
270
270
) ;
271
+ }
271
272
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
+ }
285
286
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
+ ) ;
295
296
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
+ ) ;
305
306
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
+ ) ;
316
316
317
317
visibility_blocking ( self )
318
318
}
0 commit comments