aboutsummaryrefslogtreecommitdiff
path: root/plugins/open_ext.lua
diff options
context:
space:
mode:
authorAdam <adamdharrison@gmail.com>2021-12-05 14:46:16 -0500
committerGitHub <noreply@github.com>2021-12-05 14:46:16 -0500
commitb4d44e207122130013dcbddd60635ab89ad8b692 (patch)
treea539c45c85588f74f824fe45e6f214c4acb5bbef /plugins/open_ext.lua
parent1e063c95f0bd51934cff752af653964c6aa80c0c (diff)
parent72a6478e15f22b284636fb97f219ced74a07764f (diff)
downloadlite-xl-plugins-b4d44e207122130013dcbddd60635ab89ad8b692.tar.gz
lite-xl-plugins-b4d44e207122130013dcbddd60635ab89ad8b692.zip
Merge branch 'master' into immersive-title
Diffstat (limited to 'plugins/open_ext.lua')
-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