summaryrefslogtreecommitdiff
path: root/luaotfload-database.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2014-01-03 18:17:16 +0100
committerPhilipp Gesang <phg42.2a@gmail.com>2014-01-03 18:17:16 +0100
commit5b26498993e9e0e9ba4759ceb3976b17f42d1413 (patch)
tree2de8cc4c4e4b35075806085750fee6a0d9c89000 /luaotfload-database.lua
parentf1b0fea5a84d36326f456643d54368a4ab0a7040 (diff)
downloadluaotfload-5b26498993e9e0e9ba4759ceb3976b17f42d1413.tar.gz
[db] fix incorrect localv2.4-fix-2
Diffstat (limited to 'luaotfload-database.lua')
-rw-r--r--luaotfload-database.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/luaotfload-database.lua b/luaotfload-database.lua
index 535aa7e..9d7d912 100644
--- a/luaotfload-database.lua
+++ b/luaotfload-database.lua
@@ -83,7 +83,7 @@ local tableconcat = table.concat
local tablesort = table.sort
local utf8gsub = unicode.utf8.gsub
local utf8lower = unicode.utf8.lower
-local utf8length = unicode.utf8.length
+local utf8len = unicode.utf8.len
local zlibcompress = zlib.compress
--- these come from Lualibs/Context
@@ -2127,7 +2127,7 @@ end
local truncate_string = function (str, restrict)
local tw = luaotfloadconfig.termwidth
local wd = tw - restrict
- local len = utf8length (str)
+ local len = utf8len (str)
if wd - len < 0 then
--- combined length exceeds terminal,
str = ".." .. stringsub(str, len - wd + 2)