Fixed completion display bug

This commit is contained in:
Hackerpilot 2013-08-11 01:06:03 +00:00
parent 0253e5cf3b
commit dffd348a12
2 changed files with 3 additions and 1 deletions

View File

@ -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.

View File

@ -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)