aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term')
-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 c7955a3d..e7815e12 100644
--- a/helix-term/src/ui/completion.rs
+++ b/helix-term/src/ui/completion.rs
@@ -138,14 +138,14 @@ impl Completion {
)
{
match snippet::parse(&edit.new_text) {
- Ok(snippet) => snippet::into_transaction(
- snippet,
+ Ok(snippet) => util::generate_transaction_from_snippet(
doc.text(),
doc.selection(view_id),
- &edit,
+ &edit.range,
+ snippet,
doc.line_ending.as_str(),
- offset_encoding,
include_placeholder,
+ offset_encoding,
),
Err(err) => {
log::error!(