Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lua/blink/cmp/lib/text_edits.lua
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,8 @@ function text_edits.write_to_dot_repeat(text_edit)
local saved_shortmess = vim.o.shortmess
vim.opt.completeopt = ''
if not vim.o.shortmess:match('c') then vim.o.shortmess = vim.o.shortmess .. 'c' end
vim.fn.complete(1, { '_' .. chars_to_insert })
local success, err = pcall(vim.fn.complete, 1, { '_' .. chars_to_insert })
if not success then vim.print('dot repeat is not added: ' .. err) end
vim.opt.completeopt = saved_completeopt
vim.o.shortmess = saved_shortmess

Expand Down
Loading