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

Commit 1383d6c

Browse files
committed
fix: small issue with cache completion items
1 parent e9edc3f commit 1383d6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/completion/source.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ function M.autoCompletion(manager)
161161
M.prefixLength = #prefix
162162

163163
-- force reset chain completion and clear completion cache if entering a new word
164-
if (#prefix < length) then
164+
if (#prefix <= length) then
165165
complete.clearCache()
166166
M.chain_complete_index = 1
167167
M.stop_complete = false

0 commit comments

Comments
 (0)