From 1677f339859edde6e1603dd437a15cc9b2d2e8b0 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 10 Jan 2018 21:01:55 +0800 Subject: disable border on windows --- xmake/core/ui/window.lua | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.3.1