aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorNightwing <jobinsjjc1492@protonmail.com>2021-12-03 21:00:36 +0900
committerNightwing <jobinsjjc1492@protonmail.com>2021-12-03 21:00:36 +0900
commitb8ddda0863d7be2922c43741cff456a29d8862d5 (patch)
tree6e7d3043d6a1b6b0f0e607537e084781771a9f23 /plugins
parentf54baa037ed026922302c17cac2748f0e0c58ef6 (diff)
parentbeef263a9de2170785a33568632da15d951e417a (diff)
downloadlite-xl-plugins-b8ddda0863d7be2922c43741cff456a29d8862d5.tar.gz
lite-xl-plugins-b8ddda0863d7be2922c43741cff456a29d8862d5.zip
Merge branch 'dev1' of github.com:Nightwing13/lite-plugins into dev1
Diffstat (limited to 'plugins')
-rw-r--r--plugins/open_ext.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/open_ext.lua b/plugins/open_ext.lua
index 0c7eff1..8a98516 100644
--- a/plugins/open_ext.lua
+++ b/plugins/open_ext.lua
@@ -143,7 +143,7 @@ local function validate_doc(doc)
if not f then return true end
local str = f:read(128 * 4) -- max bytes for 128 codepoints
f:close()
- return validate_utf8(str, 128)
+ return validate_utf8(str or "", 128)
end