aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/commands/typed.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs
index 384db4ac..2ca3a561 100644
--- a/helix-term/src/commands/typed.rs
+++ b/helix-term/src/commands/typed.rs
@@ -1318,7 +1318,11 @@ fn reload_all(
// Ensure that the view is synced with the document's history.
view.sync_changes(doc);
- doc.reload(view, &cx.editor.diff_providers)?;
+ if let Err(error) = doc.reload(view, &cx.editor.diff_providers) {
+ cx.editor.set_error(format!("{}", error));
+ continue;
+ }
+
if let Some(path) = doc.path() {
cx.editor
.language_servers