Skip to content

Commit 04b8325

Browse files
committed
fix(cmdline): do not mutate label description for boolean option
1 parent 9bcb14b commit 04b8325

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lua/blink/cmp/sources/cmdline/init.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,11 +266,10 @@ function cmdline:get_completions(context, callback)
266266

267267
if option_info and option_info.type == 'boolean' then
268268
filter_text = 'no' .. filter_text
269-
label_details.description = 'no' .. label_details.description
270269
items[#items + 1] = vim.tbl_deep_extend('force', {}, item, {
271270
label = filter_text,
272271
filterText = filter_text,
273-
labelDetails = label_details,
272+
labelDetails = { description = 'no' .. label_details.description },
274273
sortText = filter_text,
275274
textEdit = { newText = 'no' .. new_text },
276275
}) --[[@as blink.cmp.CompletionItem]]

0 commit comments

Comments
 (0)