Merge pull request #69 from Kelet/master

Fix issue 57, and fix file open without close
This commit is contained in:
Hackerpilot 2013-11-04 10:22:00 -08:00
commit 4568dfd6cd
2 changed files with 2 additions and 1 deletions

View File

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

View File

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