Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-view/src/commands/mod.rs')
-rw-r--r--helix-view/src/commands/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-view/src/commands/mod.rs b/helix-view/src/commands/mod.rs
index 82ecdcf8..07c8fd9f 100644
--- a/helix-view/src/commands/mod.rs
+++ b/helix-view/src/commands/mod.rs
@@ -2324,7 +2324,7 @@ async fn make_format_callback(
let view_id = view!(editor).id;
if let Some(doc) = editor.document_mut(doc_id) {
if doc.version() == doc_version {
- doc.apply(&Transaction::from(format), view_id);
+ doc.apply(&format, view_id);
doc.append_changes_to_history(view_id);
if let Modified::SetUnmodified = modified {
doc.reset_modified();