diff --git a/src/app.rs b/src/app.rs index 82cdbbf7..de933729 100644 --- a/src/app.rs +++ b/src/app.rs @@ -343,7 +343,7 @@ impl App { self.reset.open(action)?; flags.insert(NeedsUpdate::COMMANDS); } - InternalEvent::AddHunk(hash) => { + InternalEvent::StageHunk(hash) => { if let Some((path, is_stage)) = self.status_tab.selected_path() { diff --git a/src/components/diff.rs b/src/components/diff.rs index fc719689..de6fe656 100644 --- a/src/components/diff.rs +++ b/src/components/diff.rs @@ -278,7 +278,7 @@ impl DiffComponent { .as_ref() .expect("try using queue in immutable diff") .borrow_mut() - .push_back(InternalEvent::AddHunk(hash)); + .push_back(InternalEvent::StageHunk(hash)); } Ok(()) diff --git a/src/queue.rs b/src/queue.rs index 1b467da1..e760e6b6 100644 --- a/src/queue.rs +++ b/src/queue.rs @@ -37,7 +37,7 @@ pub enum InternalEvent { /// ConfirmedAction(Action), /// - AddHunk(u64), + StageHunk(u64), /// ShowErrorMsg(String), ///