fix: fix toggle entry will trigger auto_close events

This commit is contained in:
JuanZoran
2023-03-19 20:15:36 +08:00
parent 3eae6a40e9
commit 8be4fb7303
7 changed files with 34 additions and 27 deletions

View File

@@ -47,8 +47,7 @@ function M.new(opts)
data.to = 'en'
end
-- FIXME : Check if the str is a word
data.is_word = true
data.is_word = Trans.util.is_word(str)
return data
end