Fix accidental variable shadowing

This commit is contained in:
Francesco Abbate 2021-05-18 12:57:56 +02:00
parent 89bb106d32
commit dd802f9e17
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ command.add(nil, {
end
end
core.command_view:enter("Open File From Project", function(text, item)
local text = item and item.text or text
text = item and item.text or text
local filename = core.resolve_project_filename(text) or common.home_expand(text)
core.root_view:open_doc(core.open_doc(filename))
end, function(text)