diff options
| author | OpportunityLiu <[email protected]> | 2019-06-19 11:52:33 +0800 |
|---|---|---|
| committer | OpportunityLiu <[email protected]> | 2019-06-19 11:52:33 +0800 |
| commit | 13bcf540fa88260647c6f85d92e6462d9e9140ba (patch) | |
| tree | bf27a19f4c7602286745ebcdd9c0e330340daa6a | |
| parent | d093198ddcd2f0f8e511dd03e848de0378b81bfd (diff) | |
fix
| -rw-r--r-- | xmake/core/sandbox/modules/import/core/sandbox/sandbox.lua | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/xmake/core/sandbox/modules/import/core/sandbox/sandbox.lua b/xmake/core/sandbox/modules/import/core/sandbox/sandbox.lua index bae3f596f..6a60e4c23 100644 --- a/xmake/core/sandbox/modules/import/core/sandbox/sandbox.lua +++ b/xmake/core/sandbox/modules/import/core/sandbox/sandbox.lua @@ -31,10 +31,11 @@ local history = require("project/history") local dump = require("base/dump") -- print variables for interactive mode -function sandbox_core_sandbox._interactive_dump(...) - local values = {...} - if #values == 1 then - dump(values[1], "< ") +function sandbox_core_sandbox._interactive_dump(v0, ...) + local values = {v0, ...} + if #values <= 1 then + -- in case v0 is nil + dump(v0, "< ") io.write("\n") else for i, v in ipairs({...}) do |
