Skip to content

Commit

Permalink
Merge pull request #270 from sekta2/patch-1
Browse files Browse the repository at this point in the history
pcall(function, varargs)
  • Loading branch information
MihailRis authored Jul 31, 2024
2 parents 10fa828 + e74f65e commit 8e789af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions res/layouts/console.xml.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ function submit(text)
setup_variables()

document.log.caret = -1
local status, result = pcall(function() return console.execute(text) end)
if result ~= nil then
local status, result = pcall(console.execute, text)
if result then
console.log(result)
end
document.prompt.text = ""
Expand Down

0 comments on commit 8e789af

Please sign in to comment.