We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c8b5c1 commit 73b6432Copy full SHA for 73b6432
1 file changed
lua.lua
@@ -23,7 +23,7 @@ elseif cmd=="--save" or cmd=="-s" then
23
elseif cmd~=nil then
24
-- Support some of the prefixes allowed by dfhack.interpreter
25
local prefix
26
- if string.match(cmd, "^[~!]") then
+ if string.match(cmd, "^[~@!]") then
27
prefix = string.sub(cmd, 1, 1)
28
cmd = 'return '..string.sub(cmd, 2)
29
end
@@ -39,6 +39,8 @@ elseif cmd~=nil then
39
print(table.unpack(rv,2,rv.n))
40
if prefix == '~' then
41
printall(rv[2])
42
+ elseif prefix == '@' then
43
+ printall_ipairs(rv[2])
44
45
46
else
0 commit comments