Skip to content
This repository has been archived by the owner on Sep 27, 2019. It is now read-only.

Commit

Permalink
[db] fix incorrect local
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Gesang committed Jan 3, 2014
1 parent f1b0fea commit 5b26498
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions luaotfload-database.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 5b26498

Please sign in to comment.