From 3d5a418c6c21d1004019f2c1730895164d6d7d5d Mon Sep 17 00:00:00 2001 From: Joe Lim <50560759+joelim-work@users.noreply.github.com> Date: Wed, 9 Apr 2025 21:51:05 +1000 Subject: [PATCH] Use `Screen.Clear` for clearing the screen (#1957) --- ui.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ui.go b/ui.go index a57572da..523f7516 100644 --- a/ui.go +++ b/ui.go @@ -1030,13 +1030,7 @@ func (ui *ui) draw(nav *nav) { st := tcell.StyleDefault context := dirContext{selections: nav.selections, saves: nav.saves, tags: nav.tags} - // XXX: manual clean without flush to avoid flicker on Windows - wtot, htot := ui.screen.Size() - for i := range wtot { - for j := range htot { - ui.screen.SetContent(i, j, ' ', nil, st) - } - } + ui.screen.Clear() ui.sxScreen.sixel = nil ui.drawPromptLine(nav)