fix: menu title when browsing files (#349)

This commit is contained in:
christoph-heinrich
2022-10-28 21:54:57 +02:00
committed by GitHub
parent 00d249a351
commit 59ac8af48f
3 changed files with 81 additions and 23 deletions

View File

@@ -22,7 +22,7 @@ end
---@param char string
---@return string
function trim_end(str, char)
local char, end_i = char:byte(), nil
local char, end_i = char:byte(), 0
for i = #str, 1, -1 do
if str:byte(i) ~= char then
end_i = i