Merge pull request #71 from Kelet/master

Close temporary file used in going to declaration
This commit is contained in:
Hackerpilot 2013-11-07 13:44:07 -08:00
commit 0016784407
1 changed files with 1 additions and 0 deletions

View File

@ -113,6 +113,7 @@ function M.gotoDeclaration()
p:close()
local tmpFile = io.open(fileName, "r")
local r = tmpFile:read("*a")
io.close(tmpFile)
if r ~= "Not found\n" then
path, position = r:match("^(.-)\t(%d+)")
if (path ~= nil and position ~= nil) then