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,