aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src/editor.rs
diff options
context:
space:
mode:
authorSkyler Hawthorne2022-05-10 03:08:12 +0000
committerSkyler Hawthorne2022-10-19 02:31:38 +0000
commite1f7bdb1d2ef68c0de38e768080291901ff4662e (patch)
tree8364a4965296f762e338f3803d8e99252eb62ae4 /helix-view/src/editor.rs
parent83b6042b97d13fca751e3d5d0c32f04e3ad04c9a (diff)
fix buffer-close
Diffstat (limited to 'helix-view/src/editor.rs')
-rw-r--r--helix-view/src/editor.rs4
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() {