Don't block when redraw channel becomes full

Fixes #1497
This commit is contained in:
Zachary Yedidia
2020-02-11 20:03:32 -05:00
parent d7e3fc99f1
commit 8224037080
6 changed files with 12 additions and 8 deletions

View File

@@ -1220,7 +1220,7 @@ func (h *BufPane) ToggleDiffGutter() bool {
if !h.Buf.Settings["diffgutter"].(bool) {
h.Buf.Settings["diffgutter"] = true
h.Buf.UpdateDiff(func(synchronous bool) {
screen.DrawChan <- true
screen.Redraw()
})
InfoBar.Message("Enabled diff gutter")
} else {