diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2024-03-09 14:01:49 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2024-03-09 14:14:42 +0900 |
commit | 26244ad8c21ccc946393e10eea7d6b1ad32096e1 (patch) | |
tree | 8264f57f1cc339b87517e2d20eef15bb13800460 /src/tui/tcell.go | |
parent | fa0aa5510d1d78a80363e053f2db5502f9bac416 (diff) |
Fix preview area not being cleared when using certain types of border styles
fzf --preview 'sleep 3; date' --preview-window hidden \
--bind ctrl-/:change-preview-window:up,border-bottom
Diffstat (limited to 'src/tui/tcell.go')
-rw-r--r-- | src/tui/tcell.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tui/tcell.go b/src/tui/tcell.go index ae3cb2e9..0ca8aee7 100644 --- a/src/tui/tcell.go +++ b/src/tui/tcell.go @@ -544,7 +544,7 @@ func (r *FullscreenRenderer) NewWindow(top int, left int, width int, height int, height: height, normal: normal, borderStyle: borderStyle} - w.drawBorder(false) + w.Erase() return w } @@ -561,8 +561,8 @@ func fill(x, y, w, h int, n ColorPair, r rune) { } func (w *TcellWindow) Erase() { - w.drawBorder(false) fill(w.left-1, w.top, w.width+1, w.height-1, w.normal, ' ') + w.drawBorder(false) } func (w *TcellWindow) EraseMaybe() bool { |