This commit is contained in:
Stephan Dilly 2020-06-14 23:37:46 +02:00
parent d67a240bc7
commit b3045b35bb
3 changed files with 3 additions and 3 deletions

View file

@ -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()
{

View file

@ -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(())

View file

@ -37,7 +37,7 @@ pub enum InternalEvent {
///
ConfirmedAction(Action),
///
AddHunk(u64),
StageHunk(u64),
///
ShowErrorMsg(String),
///