From 32d25b33ee109f1979db85d7ddf563246d6bcb7f Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Fri, 30 Oct 2015 07:42:58 +0100 Subject: [tool] display fuzzy hint only when not fuzzing --- src/luaotfload-tool.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/luaotfload-tool.lua') 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 -- cgit v1.2.3