Don't expose draw channel to outside packages

This commit is contained in:
Zachary Yedidia
2020-02-11 20:39:26 -05:00
parent 7c77927913
commit 1a64ffb88b
2 changed files with 12 additions and 7 deletions

View File

@@ -278,8 +278,8 @@ func main() {
// clear the drawchan so we don't redraw excessively
// if someone requested a redraw before we started displaying
for len(screen.DrawChan) > 0 {
<-screen.DrawChan
for len(screen.DrawChan()) > 0 {
<-screen.DrawChan()
}
// wait for initial resize event
@@ -334,7 +334,7 @@ func DoEvent() {
}
case <-shell.CloseTerms:
case event = <-events:
case <-screen.DrawChan:
case <-screen.DrawChan():
}
if action.InfoBar.HasPrompt {