]> git.lizzy.rs Git - micro.git/blobdiff - internal/screen/screen.go
Use shell job for terminal callback
[micro.git] / internal / screen / screen.go
index 0f1cd64b0ab57afe8a0ed87c492cc0621804c531..967e8617e1c9ab7d9f9b4dbd3915323007af721d 100644 (file)
@@ -24,7 +24,6 @@ var Events chan (tcell.Event)
 
 // The lock is necessary since the screen is polled on a separate thread
 var lock sync.Mutex
-var DrawLock sync.Mutex
 
 // drawChan is a channel that will cause the screen to redraw when
 // written to even if no event user event has occurred
@@ -121,7 +120,6 @@ func TempFini() bool {
        if !screenWasNil {
                Screen.Fini()
                Lock()
-               DrawLock.Lock()
                Screen = nil
        }
        return screenWasNil
@@ -132,7 +130,6 @@ func TempStart(screenWasNil bool) {
        if !screenWasNil {
                Init()
                Unlock()
-               DrawLock.Unlock()
        }
 }