summaryrefslogtreecommitdiff
path: root/src/tui/tcell.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2023-11-02 21:00:07 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2023-11-02 21:00:07 +0900
commitd0466fa77714cccae6875facafb4a7d49e3f958e (patch)
tree6f46912b1be2fbefeaae713aed54e257df15c249 /src/tui/tcell.go
parent21ab64e96213ec99cf3f6f207690ffe710713fcc (diff)
downloadfzf-d0466fa77714cccae6875facafb4a7d49e3f958e.tar.gz
Fix regression where tcell renderer not clearing the preview window
Diffstat (limited to 'src/tui/tcell.go')
-rw-r--r--src/tui/tcell.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tui/tcell.go b/src/tui/tcell.go
index d0a710a3..38641f7a 100644
--- a/src/tui/tcell.go
+++ b/src/tui/tcell.go
@@ -555,6 +555,11 @@ func (w *TcellWindow) Erase() {
fill(w.left-1, w.top, w.width+1, w.height-1, w.normal, ' ')
}
+func (w *TcellWindow) EraseMaybe() bool {
+ w.Erase()
+ return true
+}
+
func (w *TcellWindow) Enclose(y int, x int) bool {
return x >= w.left && x < (w.left+w.width) &&
y >= w.top && y < (w.top+w.height)