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
No known key found for this signature in database
GPG Key ID: C08A498EC7F1AFDD
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ core.add_thread(function()
local i = 1 local i = 1
local s = {} local s = {}
local symbols_count = 0 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 for sym in doc.lines[i]:gmatch(config.symbol_pattern) do
if not s[sym] then if not s[sym] then
symbols_count = symbols_count + 1 symbols_count = symbols_count + 1