diff options
| author | ruki <[email protected]> | 2018-12-06 00:29:44 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-12-05 20:58:29 +0800 |
| commit | c1ee73d2858c02e66e2e8af3f18e6fff777758cf (patch) | |
| tree | c6a802060e7d485c43ad169acd8c71c64cb0f42b | |
| parent | fe30a5dd9498b5431907fb2983973fed21289f58 (diff) | |
improve tui
| -rw-r--r-- | xmake/core/ui/border.lua | 2 | ||||
| -rw-r--r-- | xmake/core/ui/window.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/ui/border.lua b/xmake/core/ui/border.lua index 503a77a77..ae2228540 100644 --- a/xmake/core/ui/border.lua +++ b/xmake/core/ui/border.lua @@ -39,7 +39,7 @@ function border:init(name, bounds) view.init(self, name, bounds) -- check bounds - assert(self:width() > 2 and self:height() > 2, string.format("%s: too small!", self)) + assert(self:width() > 2 and self:height() > 2, string.format("%s: too small!", tostring(self))) end -- draw border diff --git a/xmake/core/ui/window.lua b/xmake/core/ui/window.lua index 4f07c09d8..1685b9884 100644 --- a/xmake/core/ui/window.lua +++ b/xmake/core/ui/window.lua @@ -43,7 +43,7 @@ function window:init(name, bounds, title, shadow) panel.init(self, name, bounds) -- check bounds - assert(self:width() > 4 and self:height() > 3, string.format("%s: too small!", self)) + assert(self:width() > 4 and self:height() > 3, string.format("%s: too small!", tostring(self))) -- insert shadow if shadow then |
