diff --git a/README.md b/README.md index 4b4ab80..60d5fd9 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/editors/textadept/modules/dmd/dcd.lua b/editors/textadept/modules/dmd/dcd.lua index 7588b81..a69422d 100644 --- a/editors/textadept/modules/dmd/dcd.lua +++ b/editors/textadept/modules/dmd/dcd.lua @@ -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)