From 5ae445cb63694ef308a5af17a4f20a6d4e61ce80 Mon Sep 17 00:00:00 2001 From: Xuesong Peng Date: Thu, 27 Jul 2023 09:45:01 +0800 Subject: [PATCH] fix: complete missing change of 95a934f --- schema/lua/jiandao/unicode_translator.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema/lua/jiandao/unicode_translator.lua b/schema/lua/jiandao/unicode_translator.lua index d4da29f..b4dcd15 100644 --- a/schema/lua/jiandao/unicode_translator.lua +++ b/schema/lua/jiandao/unicode_translator.lua @@ -28,7 +28,7 @@ local function translator(input, seg) if is_win and codepoint == 10 then ch = "LF" end - local cand = Candidate("unicode", seg.start, seg._end, utf8.char(codepoint), " Unicode") + local cand = Candidate("unicode", seg.start, seg._end, ch, " Unicode") -- input_code = string.format("%04s", input_code) -- string.format not working in Hamster local num_prefix = 4 - string.len(input_code)