Ensure screen cannot draw during a term prompt

Fixes #2528
This commit is contained in:
Zachary Yedidia
2022-08-16 22:07:41 -07:00
parent 225927b9a2
commit 3d6b0c6dd6
2 changed files with 5 additions and 0 deletions

View File

@@ -388,6 +388,7 @@ func DoEvent() {
var event tcell.Event
// Display everything
screen.DrawLock.Lock()
screen.Screen.Fill(' ', config.DefStyle)
screen.Screen.HideCursor()
action.Tabs.Display()
@@ -397,6 +398,7 @@ func DoEvent() {
action.MainTab().Display()
action.InfoBar.Display()
screen.Screen.Show()
screen.DrawLock.Unlock()
// Check for new events
select {