Maintain workspace buffers state after saving untitled buffer

This commit is contained in:
Max Brunsfeld
2021-05-05 13:12:51 -07:00
parent 47d03498f4
commit 78a5d0a378
4 changed files with 77 additions and 20 deletions
+1 -1
View File
@@ -436,7 +436,7 @@ impl Buffer {
&mut self,
file: &FileHandle,
ctx: &mut ModelContext<Self>,
) -> LocalBoxFuture<'static, Result<()>> {
) -> LocalBoxFuture<'static, Result<u64>> {
let snapshot = self.snapshot();
let version = self.version.clone();
let save_task = file.save(snapshot, ctx.as_ref());