Skip to content

Commit 13979c1

Browse files
author
Stephan Dilly
committed
revert workaround (fixes #26)
1 parent 9d28dcf commit 13979c1

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/components/changes.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,7 @@ impl Component for ChangesComponent {
348348
}
349349
true
350350
}
351-
keys::STATUS_RESET_FILE_1
352-
| keys::STATUS_RESET_FILE_2 => {
351+
keys::STATUS_RESET_FILE => {
353352
self.is_working_dir
354353
&& self.dispatch_reset_workdir()
355354
}

src/keys.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,5 @@ pub const MOVE_RIGHT: KeyEvent = no_mod(KeyCode::Right);
3030
pub const MOVE_UP: KeyEvent = no_mod(KeyCode::Up);
3131
pub const MOVE_DOWN: KeyEvent = no_mod(KeyCode::Down);
3232
pub const STATUS_STAGE_FILE: KeyEvent = no_mod(KeyCode::Enter);
33-
pub const STATUS_RESET_FILE_1: KeyEvent = no_mod(KeyCode::Char('D'));
34-
pub const STATUS_RESET_FILE_2: KeyEvent =
33+
pub const STATUS_RESET_FILE: KeyEvent =
3534
with_mod(KeyCode::Char('D'), KeyModifiers::SHIFT);

0 commit comments

Comments
 (0)