From bc480aa927ef4afbf5431f566e8aea7458e9f8df Mon Sep 17 00:00:00 2001 From: Liam Dyer Date: Sat, 4 Jan 2025 18:51:38 -0500 Subject: [PATCH] fix: cmdline completion new text not including prefix Closes #883 --- lua/blink/cmp/sources/cmdline/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/blink/cmp/sources/cmdline/init.lua b/lua/blink/cmp/sources/cmdline/init.lua index 1118d63f..5ff5e11a 100644 --- a/lua/blink/cmp/sources/cmdline/init.lua +++ b/lua/blink/cmp/sources/cmdline/init.lua @@ -72,7 +72,7 @@ function cmdline:get_completions(context, callback) -- add prefix to the newText local new_text = completion - if has_prefix then new_text = current_arg_prefix .. completion end + if not has_prefix then new_text = current_arg_prefix .. completion end table.insert(items, { label = label,