summaryrefslogtreecommitdiff
path: root/src/luaotfload-tool.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2015-10-30 07:42:58 +0100
committerPhilipp Gesang <phg@phi-gamma.net>2015-10-30 07:42:58 +0100
commit32d25b33ee109f1979db85d7ddf563246d6bcb7f (patch)
treea2b49de94b655d404ab3f2559b236d28d7c17387 /src/luaotfload-tool.lua
parent72a9a971cb229656e021ab56894ac73baa62c0c0 (diff)
downloadluaotfload-32d25b33ee109f1979db85d7ddf563246d6bcb7f.tar.gz
[tool] display fuzzy hint only when not fuzzing
Diffstat (limited to 'src/luaotfload-tool.lua')
-rwxr-xr-xsrc/luaotfload-tool.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/luaotfload-tool.lua b/src/luaotfload-tool.lua
index 5508ffc..022b659 100755
--- a/src/luaotfload-tool.lua
+++ b/src/luaotfload-tool.lua
@@ -1250,13 +1250,14 @@ actions.query = function (job)
end
else
logreport (false, 0, "resolve", "Cannot find %q in index.", query)
- logreport (false, 0, "resolve",
- "Hint: use the --fuzzy option to display suggestions.",
- query)
if job.fuzzy == true then
logreport (false, 0, "resolve",
"Looking for close matches, this may take a while ...")
local _success = fonts.names.find_closest(query, job.fuzzy_limit)
+ else
+ logreport (false, 0, "resolve",
+ "Hint: use the --fuzzy option to display suggestions.",
+ query)
end
end
return true, true