diff options
author | jgmdev <jgmdev@gmail.com> | 2021-10-22 12:46:39 -0400 |
---|---|---|
committer | jgmdev <jgmdev@gmail.com> | 2021-10-22 12:46:39 -0400 |
commit | 00894ec021f6689dc8845fed0e86e37c6ad229f2 (patch) | |
tree | da72d9e4db59519a1c6a1cf1101277597168b0e5 /plugins/open_ext.lua | |
parent | 05dddc019d661b7b579eb8cc46cd479751eb003f (diff) | |
download | lite-xl-plugins-00894ec021f6689dc8845fed0e86e37c6ad229f2.tar.gz lite-xl-plugins-00894ec021f6689dc8845fed0e86e37c6ad229f2.zip |
open_ext: fixed bug when opening a new document.
Diffstat (limited to 'plugins/open_ext.lua')
-rw-r--r-- | plugins/open_ext.lua | 1 |
1 files changed, 1 insertions, 0 deletions
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() |