Skip to content
This repository was archived by the owner on Oct 13, 2021. It is now read-only.

Commit 9c12e8e

Browse files
committed
fix: avoid override completion(#54)
1 parent a10959f commit 9c12e8e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lua/completion/complete.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,9 @@ M.performComplete = function(complete_source, complete_items_map, manager, bufnr
5959
if vim.g.completion_max_items ~= nil then
6060
items = { unpack(items, 1, vim.g.completion_max_items)}
6161
end
62-
vim.fn.complete(textMatch+1, items)
63-
-- vim.fn.complete_add(items[3])
6462
if #items ~= 0 then
6563
-- reset insertChar and handle auto changing source
64+
vim.fn.complete(textMatch+1, items)
6665
manager.insertChar = false
6766
manager.changeSource = false
6867
else

0 commit comments

Comments
 (0)