summaryrefslogtreecommitdiff
path: root/xmake/core/ui/boxdialog.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2018-01-23 22:30:30 +0800
committerruki <[email protected]>2018-01-23 09:03:01 +0800
commitf7c0c7b89a45bf02a3ca3ffee8251d7a09654e41 (patch)
treea0992229d26f8f523db4e6c35de9b2f39c0b44bb /xmake/core/ui/boxdialog.lua
parent2db3a5f053faebb08c3e65e5b097d0de4064ac1e (diff)
modify action args
Diffstat (limited to 'xmake/core/ui/boxdialog.lua')
-rw-r--r--xmake/core/ui/boxdialog.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/ui/boxdialog.lua b/xmake/core/ui/boxdialog.lua
index 0ed780e9e..74d5b629d 100644
--- a/xmake/core/ui/boxdialog.lua
+++ b/xmake/core/ui/boxdialog.lua
@@ -49,9 +49,9 @@ function boxdialog:init(name, bounds, title)
self:text():option_set("progress", false)
-- text changed
- self:text():action_set(action.ac_on_text_changed, function (v, e)
- if e.text then
- local lines = #self:text():splitext(e.text)
+ self:text():action_set(action.ac_on_text_changed, function (v)
+ if v:text() then
+ local lines = #self:text():splitext(v:text())
if lines > 0 and lines < self:height() then
self:box():bounds().sy = lines
self:text():bounds().ey = lines