fix: dont allow open revert dlg on [D] press while on staged file

This commit is contained in:
Stephan Dilly 2020-04-08 00:23:12 +02:00
parent 387b8748b1
commit 936e965c17

View file

@ -222,7 +222,9 @@ impl Component for ChangesComponent {
}
}
keys::STATUS_RESET_FILE => {
if self.dispatch_reset_workdir() {
if self.is_working_dir
&& self.dispatch_reset_workdir()
{
Some(EventUpdate::None)
} else {
None