Use Screen.Clear for clearing the screen (#1957)

This commit is contained in:
Joe Lim authored and GitHub committed 2025-04-09 21:51:05 +10:00
1 parent 841cc3da06
commit 3d5a418c6c
1 file changed
+1 -7
+1 -7
View File
@@ -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)