Consider last document line to gather autocomplete symbols

This commit is contained in:
Guldoman
2022-04-10 04:11:59 +02:00
parent 683d23e3ba
commit ffe698cef7
+1 -1
View File
@@ -81,7 +81,7 @@ core.add_thread(function()
local i = 1
local s = {}
local symbols_count = 0
while i < #doc.lines do
while i <= #doc.lines do
for sym in doc.lines[i]:gmatch(config.symbol_pattern) do
if not s[sym] then
symbols_count = symbols_count + 1