Skip to content

Commit

Permalink
also update list after pop
Browse files Browse the repository at this point in the history
  • Loading branch information
extrawurst committed Apr 23, 2022
1 parent 9a7bb43 commit 4992284
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/tabs/stashlist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ impl StashList {
) -> Result<()> {
match action {
Action::StashDrop(ids) => self.drop(repo, ids)?,
Action::StashPop(id) => Self::pop(repo, *id)?,
Action::StashPop(id) => self.pop(repo, *id)?,
_ => (),
};

Expand All @@ -135,8 +135,12 @@ impl StashList {
Ok(())
}

fn pop(repo: &RepoPath, id: CommitId) -> Result<()> {
fn pop(&mut self, repo: &RepoPath, id: CommitId) -> Result<()> {
sync::stash_pop(repo, id)?;

self.list.clear_marked();
self.update()?;

Ok(())
}
}
Expand Down

0 comments on commit 4992284

Please sign in to comment.