Skip to content

Commit

Permalink
fix: cmdline completion new text not including prefix
Browse files Browse the repository at this point in the history
Closes #883
  • Loading branch information
Saghen committed Jan 4, 2025
1 parent e3b7cb4 commit bc480aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/blink/cmp/sources/cmdline/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bc480aa

Please sign in to comment.