summaryrefslogtreecommitdiffstats
path: root/src/event_exec.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/event_exec.rs')
-rw-r--r--src/event_exec.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/event_exec.rs b/src/event_exec.rs
index 95e95e7..55d0134 100644
--- a/src/event_exec.rs
+++ b/src/event_exec.rs
@@ -858,6 +858,7 @@ impl EventAction {
Self::toggle_flag(status)?;
}
+ status.trash.update()?;
for flagged in status.flagged.content.iter() {
status.trash.trash(flagged)?;
}
@@ -868,6 +869,7 @@ impl EventAction {
/// Ask the user if he wants to empty the trash.
/// It requires a confimation before doing anything
pub fn trash_empty(status: &mut Status) -> Result<()> {
+ status.trash.update()?;
status
.selected()
.set_mode(Mode::NeedConfirmation(NeedConfirmation::EmptyTrash));