diff options
author | Nightwing <94565465+Nightwing13@users.noreply.github.com> | 2021-12-03 12:35:33 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-03 12:35:33 +0900 |
commit | beef263a9de2170785a33568632da15d951e417a (patch) | |
tree | fa286e2468a363851a974b0a888daaac672aefbd /plugins | |
parent | e5f8317541b8b986c45b234f58192c90434a1365 (diff) | |
parent | 7a8cc04b031c4114fa7e85aacea27d21b2f0b331 (diff) | |
download | lite-xl-plugins-beef263a9de2170785a33568632da15d951e417a.tar.gz lite-xl-plugins-beef263a9de2170785a33568632da15d951e417a.zip |
Merge branch 'lite-xl:master' into dev1
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/open_ext.lua | 2 |
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 |