Consider last document line to gather `autocomplete` symbols
This commit is contained in:
parent
683d23e3ba
commit
ffe698cef7
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue