mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 09:28:21 +00:00
naming
This commit is contained in:
parent
905d1e6d03
commit
176f2ee2fa
1 changed files with 2 additions and 2 deletions
|
|
@ -115,7 +115,7 @@ impl ChangesComponent {
|
|||
false
|
||||
}
|
||||
|
||||
fn index_reset(&mut self) -> bool {
|
||||
fn reset_workdir(&mut self) -> bool {
|
||||
if let Some(i) = self.selection() {
|
||||
let path = Path::new(i.path.as_str());
|
||||
|
||||
|
|
@ -217,7 +217,7 @@ impl Component for ChangesComponent {
|
|||
}
|
||||
}
|
||||
keys::STATUS_RESET_FILE => {
|
||||
if self.index_reset() {
|
||||
if self.reset_workdir() {
|
||||
Some(EventUpdate::All)
|
||||
} else {
|
||||
Some(EventUpdate::None)
|
||||
|
|
|
|||
Loading…
Reference in a new issue