We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef4ade1 commit 5ba6099Copy full SHA for 5ba6099
src/tabs/stashlist.rs
@@ -113,7 +113,7 @@ impl StashList {
113
) -> Result<()> {
114
match action {
115
Action::StashDrop(ids) => self.drop(repo, ids)?,
116
- Action::StashPop(id) => Self::pop(repo, *id)?,
+ Action::StashPop(id) => self.pop(repo, *id)?,
117
_ => (),
118
};
119
@@ -135,8 +135,12 @@ impl StashList {
135
Ok(())
136
}
137
138
- fn pop(repo: &RepoPath, id: CommitId) -> Result<()> {
+ fn pop(&mut self, repo: &RepoPath, id: CommitId) -> Result<()> {
139
sync::stash_pop(repo, id)?;
140
+
141
+ self.list.clear_marked();
142
+ self.update()?;
143
144
145
146
0 commit comments