mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-16 05:47:06 +09:00
Don't expose draw channel to outside packages
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user