Skip to content

Commit 5ba6099

Browse files
committed
also update list after pop
1 parent ef4ade1 commit 5ba6099

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Diff for: src/tabs/stashlist.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ impl StashList {
113113
) -> Result<()> {
114114
match action {
115115
Action::StashDrop(ids) => self.drop(repo, ids)?,
116-
Action::StashPop(id) => Self::pop(repo, *id)?,
116+
Action::StashPop(id) => self.pop(repo, *id)?,
117117
_ => (),
118118
};
119119

@@ -135,8 +135,12 @@ impl StashList {
135135
Ok(())
136136
}
137137

138-
fn pop(repo: &RepoPath, id: CommitId) -> Result<()> {
138+
fn pop(&mut self, repo: &RepoPath, id: CommitId) -> Result<()> {
139139
sync::stash_pop(repo, id)?;
140+
141+
self.list.clear_marked();
142+
self.update()?;
143+
140144
Ok(())
141145
}
142146
}

0 commit comments

Comments
 (0)