Fixed completion display bug
This commit is contained in:
parent
0253e5cf3b
commit
dffd348a12
|
|
@ -47,6 +47,8 @@ The client will print either a listing of function call tips, or a listing of of
|
||||||
completions depending on if the cursor was directly after a dot character or a
|
completions depending on if the cursor was directly after a dot character or a
|
||||||
left parethesis.
|
left parethesis.
|
||||||
|
|
||||||
|
The file name is optional. If it is not specified, input will be read from *stdin*.
|
||||||
|
|
||||||
###Dot completion
|
###Dot completion
|
||||||
When the first line of output is "identifiers", the editor should display a
|
When the first line of output is "identifiers", the editor should display a
|
||||||
completion list.
|
completion list.
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,7 @@ function M.autocomplete(ch)
|
||||||
local r = p:read("*a")
|
local r = p:read("*a")
|
||||||
print(r)
|
print(r)
|
||||||
if r ~= "\n" then
|
if r ~= "\n" then
|
||||||
if character == "." then
|
if r:match("^identifiers.*") then
|
||||||
showCompletionList(r)
|
showCompletionList(r)
|
||||||
else
|
else
|
||||||
showCalltips(r)
|
showCalltips(r)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue