diff options
| author | ruki <[email protected]> | 2018-02-01 23:15:20 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-02-01 13:32:01 +0800 |
| commit | dc29eb443366d6ff754c7f0c05e51e7d1aab3c21 (patch) | |
| tree | 2d418994d0244358127a92c2dfb37c909eb4a1c0 /xmake/core/platform/menu.lua | |
| parent | 0ee92c0da0bfd6d9215622fedbd321aabf87f061 (diff) | |
improve console menu options
Diffstat (limited to 'xmake/core/platform/menu.lua')
| -rw-r--r-- | xmake/core/platform/menu.lua | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/xmake/core/platform/menu.lua b/xmake/core/platform/menu.lua index 8231117e8..d638484ac 100644 --- a/xmake/core/platform/menu.lua +++ b/xmake/core/platform/menu.lua @@ -45,7 +45,6 @@ function menu.options(action) -- load and merge all platform options local exist = {} local results = {} - local newline = false for _, plat in ipairs(plats) do -- load platform @@ -71,22 +70,15 @@ function menu.options(action) if not exist[name] then table.insert(results, option) exist[name] = true - newline = false end - elseif option.category or not newline then + else table.insert(results, option) - newline = true end end end end end - -- remove the last empty option - if results[#results][2] == nil then - table.remove(results) - end - -- ok? return results end |
