Fixed incorrect localization that led to an error in 'Save' from tab menu.

This commit is contained in:
Paul Kulchenko
2013-05-13 11:25:02 -07:00
parent 099f9f92fa
commit cb2cb9ff3c
5 changed files with 10 additions and 9 deletions

View File

@@ -264,6 +264,7 @@ local function executeShellCode(tx)
local addedret, forceexpression = true, tx:match("^%s*=%s*")
tx = tx:gsub("^%s*=%s*","")
local fn
fn, err = loadstring("return "..tx)
if not forceexpression and err and
(err:find("'?<eof>'? expected near '") or