summaryrefslogtreecommitdiff
path: root/xmake/plugins/show/main.lua
diff options
context:
space:
mode:
authorOpportunity <[email protected]>2020-06-30 11:48:32 +0800
committerOpportunity <[email protected]>2020-06-30 11:48:32 +0800
commit58c8e709cc4677ec6fb5fdfcec1958fab6743709 (patch)
treedce1ed26d57764f4fc3e67538106793c3e1e54b2 /xmake/plugins/show/main.lua
parentf03a57c21313e1f155294c8bad56cc933c71065f (diff)
fix auto complete
Diffstat (limited to 'xmake/plugins/show/main.lua')
-rw-r--r--xmake/plugins/show/main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/show/main.lua b/xmake/plugins/show/main.lua
index b1c7b3183..9503b1a75 100644
--- a/xmake/plugins/show/main.lua
+++ b/xmake/plugins/show/main.lua
@@ -23,7 +23,7 @@ import("core.base.option")
-- show list
function _show_list(name)
- assert(import("lists." .. name, {try = true, anonymous = true}), "unknown list name(%s)", name)()
+ assert(#name > 0 and import("lists." .. name, {try = true, anonymous = true}), "unknown list name(%s)", name)()
end
-- main entry