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
|
||||
left parethesis.
|
||||
|
||||
The file name is optional. If it is not specified, input will be read from *stdin*.
|
||||
|
||||
###Dot completion
|
||||
When the first line of output is "identifiers", the editor should display a
|
||||
completion list.
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ function M.autocomplete(ch)
|
|||
local r = p:read("*a")
|
||||
print(r)
|
||||
if r ~= "\n" then
|
||||
if character == "." then
|
||||
if r:match("^identifiers.*") then
|
||||
showCompletionList(r)
|
||||
else
|
||||
showCalltips(r)
|
||||
|
|
|
|||
Loading…
Reference in New Issue