Use Screen.Clear for clearing the screen (#1957)
This commit is contained in:
1 parent
841cc3da06
commit
3d5a418c6c
1 file changed
+1
-7
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user