From f984aa0d2c9e1820783110affb37525677426935 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 6 Nov 2022 14:35:20 +0900 Subject: [PATCH] Fix --border-label and --preview-label on tcell renderer --- src/tui/tcell.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tui/tcell.go b/src/tui/tcell.go index 1f9a832b..3614477a 100644 --- a/src/tui/tcell.go +++ b/src/tui/tcell.go @@ -75,8 +75,6 @@ func (w *TcellWindow) Refresh() { } w.lastX = 0 w.lastY = 0 - - w.drawBorder() } func (w *TcellWindow) FinishFill() { @@ -517,7 +515,7 @@ func (r *FullscreenRenderer) NewWindow(top int, left int, width int, height int, if preview { normal = ColPreview } - return &TcellWindow{ + w := &TcellWindow{ color: r.theme.Colored, preview: preview, top: top, @@ -526,6 +524,8 @@ func (r *FullscreenRenderer) NewWindow(top int, left int, width int, height int, height: height, normal: normal, borderStyle: borderStyle} + w.drawBorder() + return w } func (w *TcellWindow) Close() {