aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/commands/lsp.rs
diff options
context:
space:
mode:
authorIvan Tham2023-01-21 18:13:43 +0000
committerGitHub2023-01-21 18:13:43 +0000
commita20a96abdcfbea3b3eb890bfc266850938434a90 (patch)
treedf1300dfc07f671c11abb195a62ba3f20ea510c6 /helix-term/src/commands/lsp.rs
parent68fc10903aad7b5dbb5b8be4ee17343e1a1b8f6c (diff)
Remove apply_transaction helper (#5598)
Diffstat (limited to 'helix-term/src/commands/lsp.rs')
-rw-r--r--helix-term/src/commands/lsp.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/commands/lsp.rs b/helix-term/src/commands/lsp.rs
index 90b6d76c..578eb608 100644
--- a/helix-term/src/commands/lsp.rs
+++ b/helix-term/src/commands/lsp.rs
@@ -13,7 +13,7 @@ use tui::{
use super::{align_view, push_jump, Align, Context, Editor, Open};
use helix_core::{path, Selection};
-use helix_view::{apply_transaction, document::Mode, editor::Action, theme::Style};
+use helix_view::{document::Mode, editor::Action, theme::Style};
use crate::{
compositor::{self, Compositor},
@@ -800,7 +800,7 @@ pub fn apply_workspace_edit(
offset_encoding,
);
let view = view_mut!(editor, view_id);
- apply_transaction(&transaction, doc, view);
+ doc.apply(&transaction, view.id);
doc.append_changes_to_history(view);
};