aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2020-11-29 14:43:14 +0100
committerFrancesco Abbate <francesco.bbt@gmail.com>2020-11-29 14:43:14 +0100
commitb118ac0c64124986a6ededd53db66b11b2128b93 (patch)
tree1286b3495754774959877bdb5124e1ca6a668e71
parentc722b56b7e96b08b90a2d707ece6830ea98afc2d (diff)
downloadlite-xl-using-luajit.tar.gz
lite-xl-using-luajit.zip
Fix problem with gmatch on utf8 characters when using luajitusing-luajit
-rw-r--r--data/core/common.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/core/common.lua b/data/core/common.lua
index 1fc91b80..ab55e866 100644
--- a/data/core/common.lua
+++ b/data/core/common.lua
@@ -8,7 +8,7 @@ end
function common.utf8_chars(text)
- return text:gmatch("[\0-\x7f\xc2-\xf4][\x80-\xbf]*")
+ return text:gmatch("[\x01-\x7f\xc2-\xf4][\x80-\xbf]*")
end