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

@@ -72,7 +72,7 @@ end
---Detect whether the string is English
---@param str string
---@return boolean
function M.is_English(str)
function M.is_english(str)
local char = { str:byte(1, -1) }
for i = 1, #str do
if char[i] > 128 then