Use SaveAll instead of Save

If we're closing items we should not be writing files that have not
changed (e.g. empty untitled buffers)
This commit is contained in:
Conrad Irwin 2023-09-25 13:13:39 -06:00
parent 359847d047
commit 53194ede5e
2 changed files with 2 additions and 2 deletions

View file

@ -921,7 +921,7 @@ impl Pane {
)
})?;
match answer.next().await {
Some(0) => save_intent = SaveIntent::Save,
Some(0) => save_intent = SaveIntent::SaveAll,
Some(1) => save_intent = SaveIntent::Skip,
_ => {}
}

View file

@ -1409,7 +1409,7 @@ impl Workspace {
)
})?;
match answer.next().await {
Some(0) => save_intent = SaveIntent::Save,
Some(0) => save_intent = SaveIntent::SaveAll,
Some(1) => save_intent = SaveIntent::Skip,
_ => {}
}