diff --git a/inputbox.lua b/inputbox.lua index ae0150e1e..84198cce0 100644 --- a/inputbox.lua +++ b/inputbox.lua @@ -604,8 +604,7 @@ function InputBox:ModeDependentCommands() showInfoMsgWithDelay("No input ", 1000, 1) else local s = self:PrepareStringToCalc() - if pcall(function () f = assert(loadstring("r = tostring("..s..")")) end) then - f() + if pcall(function () f = assert(loadstring("r = tostring("..s..")")) end) and pcall(f) then self:clearText() self.cursor:clear() for i=1, string.len(r) do