chore: close window and buffer more safely

This commit is contained in:
JuanZoran
2023-04-07 19:05:24 +08:00
parent fcde85544a
commit 38b8e20729
7 changed files with 17 additions and 20 deletions

View File

@@ -37,7 +37,7 @@ function M.new(opts)
data.backends[i] = Trans.backend[name]
end
if Trans.util.is_English(str) then
if Trans.util.is_english(str) then
data.from = 'en'
data.to = 'zh'
else