aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
authorfarwyler2022-06-24 13:56:18 +0000
committerGitHub2022-06-24 13:56:18 +0000
commit886cff3bcc5f8e1d81e55afdbbf7ad8ff00ffc7b (patch)
tree0f1ca6746f6f031d6d51429913e43d5ec192a2b9 /helix-term/src
parentc107f4ea49edd61a3c6e8b971b20604cdab96325 (diff)
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.
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/commands.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index a07b5109..43bc0c7c 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -2343,6 +2343,7 @@ async fn make_format_callback(
if doc.version() == doc_version {
doc.apply(&Transaction::from(format), view_id);
doc.append_changes_to_history(view_id);
+ doc.detect_indent_and_line_ending();
if let Modified::SetUnmodified = modified {
doc.reset_modified();
}