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

@@ -5,7 +5,7 @@ local filepath = import("path/filepath")
local shell = import("micro/shell")
function onBufferOpen(buf)
if (not buf.Type.Scratch) and (buf.Path ~= "") then
if buf.Settings["diffgutter"] and (not buf.Type.Scratch) and (buf.Path ~= "") then
-- check that file exists
local _, err = os.Stat(buf.AbsPath)
if err == nil then