mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-27 19:02:07 +00:00
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:
parent
359847d047
commit
53194ede5e
2 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
_ => {}
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
_ => {}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue