summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2018-01-10 21:01:55 +0800
committerruki <[email protected]>2018-01-10 00:11:31 +0800
commit1677f339859edde6e1603dd437a15cc9b2d2e8b0 (patch)
tree19974f0439a36a6552e7040f17ae183273c9ad6b
parent273ea08ed48c9c4a7d5355256a45285188297d82 (diff)
disable border on windows
-rw-r--r--xmake/core/ui/window.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/core/ui/window.lua b/xmake/core/ui/window.lua
index 821bf565d..69d3d342d 100644
--- a/xmake/core/ui/window.lua
+++ b/xmake/core/ui/window.lua
@@ -142,6 +142,11 @@ end
-- set border
function window:border_set(border)
+ -- FIXME cannot draw 'hline' and 'vline' correctly on pdcurses
+ -- so we disable border now
+ if os.host() == "windows" then
+ return
+ end
if not self._BORDER and border then
self:frame():bounds():grow(-1, -1)
elseif self._BORDER and not border then