Close temporary file used in going to declaration
This commit is contained in:
parent
623f4f060a
commit
22cceff7d5
|
@ -113,6 +113,7 @@ function M.gotoDeclaration()
|
||||||
p:close()
|
p:close()
|
||||||
local tmpFile = io.open(fileName, "r")
|
local tmpFile = io.open(fileName, "r")
|
||||||
local r = tmpFile:read("*a")
|
local r = tmpFile:read("*a")
|
||||||
|
io.close(tmpFile)
|
||||||
if r ~= "Not found\n" then
|
if r ~= "Not found\n" then
|
||||||
path, position = r:match("^(.-)\t(%d+)")
|
path, position = r:match("^(.-)\t(%d+)")
|
||||||
if (path ~= nil and position ~= nil) then
|
if (path ~= nil and position ~= nil) then
|
||||||
|
|
Loading…
Reference in New Issue