We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2032182 commit ce45c88Copy full SHA for ce45c88
src/tabs/status.rs
@@ -366,12 +366,16 @@ impl Component for Status {
366
})
367
}
368
keys::MOVE_DOWN
369
- if self.focus == Focus::WorkDir =>
+ if self.focus == Focus::WorkDir
370
+ && !self.index.is_empty() =>
371
{
372
self.switch_focus(Focus::Stage)
373
374
- keys::MOVE_UP if self.focus == Focus::Stage => {
375
+ keys::MOVE_UP
376
+ if self.focus == Focus::Stage
377
+ && !self.index_wd.is_empty() =>
378
+ {
379
self.switch_focus(Focus::WorkDir)
380
381
_ => Ok(false),
0 commit comments