diff options
author | Skyler Hawthorne | 2022-05-10 03:08:12 +0000 |
---|---|---|
committer | Skyler Hawthorne | 2022-10-19 02:31:38 +0000 |
commit | e1f7bdb1d2ef68c0de38e768080291901ff4662e (patch) | |
tree | 8364a4965296f762e338f3803d8e99252eb62ae4 /helix-view/src/editor.rs | |
parent | 83b6042b97d13fca751e3d5d0c32f04e3ad04c9a (diff) |
fix buffer-close
Diffstat (limited to 'helix-view/src/editor.rs')
-rw-r--r-- | helix-view/src/editor.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index e038a82d..e54aa7fa 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -1102,8 +1102,8 @@ impl Editor { }; // flush out any pending writes first to clear the modified status - if let Some(save_result) = doc.try_flush_saves().await { - save_result?; + if let Some(Err(err)) = doc.try_flush_saves().await { + return Err(CloseError::SaveError(err)); } if !force && doc.is_modified() { |