diff options
Diffstat (limited to 'xmake/core/ui/program.lua')
| -rw-r--r-- | xmake/core/ui/program.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/core/ui/program.lua b/xmake/core/ui/program.lua index 8407d3e6b..d1099fb32 100644 --- a/xmake/core/ui/program.lua +++ b/xmake/core/ui/program.lua @@ -39,7 +39,7 @@ local curses = require("ui/curses") local program = program or panel() -- init program -function program:init(name) +function program:init(name, argv) -- init main window local main_window = self:main_window() @@ -78,6 +78,9 @@ function program:init(name) -- get 8-bits character for getch() main_window:meta(true) + -- save the current arguments + self._ARGV = argv + -- init panel panel.init(self, name, rect {0, 0, curses.columns(), curses.lines()}) @@ -196,9 +199,6 @@ end -- run program loop function program:loop(argv) - -- save the current arguments - self._ARGV = argv - -- do message loop local e = nil local sleep = true |
