on master help sign in
Redetect indent and line endings after language server replaces documents (#2778)
886cff3farwyler
helix-term/src/commands.rs+1
@@ -2343,6 +2343,7 @@ async fn make_format_callback(
2343 if doc.version() == doc_version {
2343 if doc.version() == doc_version {
2344 doc.apply(&Transaction::from(format), view_id);
2344 doc.apply(&Transaction::from(format), view_id);
2345 doc.append_changes_to_history(view_id);
2345 doc.append_changes_to_history(view_id);
2346+ doc.detect_indent_and_line_ending();
2346 if let Modified::SetUnmodified = modified {
2347 if let Modified::SetUnmodified = modified {
2347 doc.reset_modified();
2348 doc.reset_modified();
2348 }
2349 }