]> git.lizzy.rs Git - micro.git/blobdiff - cmd/micro/micro.go
Ensure screen cannot draw during a term prompt
[micro.git] / cmd / micro / micro.go
index e05902440ba2148c20459edb7d343c1eb1b3b122..4af1d295e4d354d497f54d61b8813f62404bef75 100644 (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 {