summaryrefslogtreecommitdiff
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 20:21:00 +0100
commit5d21d8a105a5634e16a9c45ba5cbf6749a7b47db (patch)
tree3a2f5227c92c081cdf77984ae2a8623bf8e3fb46
parentcfd807af6c4f27fc8bc95744cd1c4da8a07559e1 (diff)
downloadluaotfload-5d21d8a105a5634e16a9c45ba5cbf6749a7b47db.tar.gz
[db] fix incorrect local
-rw-r--r--luaotfload-database.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/luaotfload-database.lua b/luaotfload-database.lua
index 4be54d6..cc32bb8 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)