From 00894ec021f6689dc8845fed0e86e37c6ad229f2 Mon Sep 17 00:00:00 2001 From: jgmdev Date: Fri, 22 Oct 2021 12:46:39 -0400 Subject: open_ext: fixed bug when opening a new document. --- plugins/open_ext.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/open_ext.lua b/plugins/open_ext.lua index cd0b2c6..96532c7 100644 --- a/plugins/open_ext.lua +++ b/plugins/open_ext.lua @@ -139,6 +139,7 @@ end local function read_doc(doc, limit) + if not doc.abs_filename return "" end local f = io.open(doc.abs_filename) local str = f:read(limit) f:close() -- cgit v1.2.3