Skip to content

Commit 47f84d0

Browse files
committed
Set a statusline error for formatter errors in :format
1 parent 2367b20 commit 47f84d0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

helix-term/src/commands.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3514,6 +3514,10 @@ async fn make_format_callback(
35143514
}
35153515
}
35163516
Err(err) => {
3517+
if write.is_none() {
3518+
editor.set_error(err.to_string());
3519+
return;
3520+
}
35173521
log::info!("failed to format '{}': {err}", doc.display_name());
35183522
}
35193523
}

0 commit comments

Comments
 (0)