Fix --border-label and --preview-label on tcell renderer

This commit is contained in:
Junegunn Choi 2022-11-06 14:35:20 +09:00
parent 0881a6bc17
commit f984aa0d2c
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -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() {