Skip to content

Commit

Permalink
fix(lua): aux_hint get nil (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksqsf committed Jun 18, 2024
1 parent 6ee0d6e commit 3c9b21a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/moran_aux_hint.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ function Module.func(translation, env)
end

local codes = env.aux_table[utf8.codepoint(cand_text)]
if not codes then
goto continue
end
local codes_str = table.concat(codes, " ")
if codes and gcand.comment ~= codes_str then
local comment = codes_str .. gcand.comment
Expand Down

0 comments on commit 3c9b21a

Please sign in to comment.