summaryrefslogtreecommitdiff
path: root/xmake/core/ui/inputdialog.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/inputdialog.lua
parent2db3a5f053faebb08c3e65e5b097d0de4064ac1e (diff)
modify action args
Diffstat (limited to 'xmake/core/ui/inputdialog.lua')
-rw-r--r--xmake/core/ui/inputdialog.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/ui/inputdialog.lua b/xmake/core/ui/inputdialog.lua
index 5a2a271ff..511a9c810 100644
--- a/xmake/core/ui/inputdialog.lua
+++ b/xmake/core/ui/inputdialog.lua
@@ -52,9 +52,9 @@ function inputdialog: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:text():bounds().ey = lines
self:textedit():bounds().sy = lines