summaryrefslogtreecommitdiff
path: root/helix-term/src/ui/completion.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/src/ui/completion.rs')
-rw-r--r--helix-term/src/ui/completion.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/helix-term/src/ui/completion.rs b/helix-term/src/ui/completion.rs
index 824bafd8..2eca709d 100644
--- a/helix-term/src/ui/completion.rs
+++ b/helix-term/src/ui/completion.rs
@@ -1,5 +1,5 @@
use crate::compositor::{Component, Context, Event, EventResult};
-use helix_view::{apply_transaction, editor::CompleteAction, ViewId};
+use helix_view::{editor::CompleteAction, ViewId};
use tui::buffer::Buffer as Surface;
use std::borrow::Cow;
@@ -183,7 +183,7 @@ impl Completion {
// initialize a savepoint
doc.savepoint();
- apply_transaction(&transaction, doc, view);
+ doc.apply(&transaction, view.id);
editor.last_completion = Some(CompleteAction {
trigger_offset,
@@ -203,7 +203,7 @@ impl Completion {
trigger_offset,
);
- apply_transaction(&transaction, doc, view);
+ doc.apply(&transaction, view.id);
editor.last_completion = Some(CompleteAction {
trigger_offset,
@@ -233,7 +233,7 @@ impl Completion {
additional_edits.clone(),
offset_encoding, // TODO: should probably transcode in Client
);
- apply_transaction(&transaction, doc, view);
+ doc.apply(&transaction, view.id);
}
}
}