Merge pull request #69 from Kelet/master
Fix issue 57, and fix file open without close
This commit is contained in:
commit
4568dfd6cd
|
@ -123,6 +123,7 @@ function M.autocomplete(ch)
|
|||
p:close()
|
||||
local tmpFile = io.open(fileName, "r")
|
||||
local r = tmpFile:read("*a")
|
||||
io.close(tmpFile)
|
||||
if r ~= "\n" then
|
||||
if r:match("^identifiers.*") then
|
||||
showCompletionList(r)
|
||||
|
|
|
@ -20,7 +20,7 @@ local function autocomplete()
|
|||
_M.dcd.registerImages()
|
||||
_M.dcd.autocomplete()
|
||||
if not buffer:auto_c_active() then
|
||||
_M.textadept.editing.autocomplete_word(keywords)
|
||||
textadept.editing.autocomplete_word(keywords)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue