on master help sign in
Redetect indent and line endings after language server replaces documents (#2778)

* redetect indent and line endings after language server replaces document * removes nested if * always redetect indent and line endings after format This reverts commit 764d14f55894dc7213e48022dfa0f91829b8ef59.

commit886cff3bcc5f8e1d81e55afdbbf7ad8ff00ffc7b authorfarwyler <1705805+farwyler@users.noreply.github.com> dateFri 24 Jun 2022, 15:56 (4 years ago) parentc107f4e
1 file changed+1
helix-term/src/commands.rs+1
helix-term/src/commands.rs+1
@@ -2343,6 +2343,7 @@ async fn make_format_callback(
23432343 if doc.version() == doc_version {
23442344 doc.apply(&Transaction::from(format), view_id);
23452345 doc.append_changes_to_history(view_id);
2346+ doc.detect_indent_and_line_ending();
23462347 if let Modified::SetUnmodified = modified {
23472348 doc.reset_modified();
23482349 }