From d0466fa77714cccae6875facafb4a7d49e3f958e Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 2 Nov 2023 21:00:07 +0900 Subject: Fix regression where tcell renderer not clearing the preview window --- src/tui/tcell.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/tui/tcell.go') 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) -- cgit v1.2.3