Add changelog

This commit is contained in:
sxyazi 2026-01-24 17:55:31 +08:00
parent 45c083f434
commit 7585d78613
No known key found for this signature in database
3 changed files with 12 additions and 11 deletions

View file

@ -1,6 +1,9 @@
{ {
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json", "$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
"runtime.version": "Lua 5.4", "runtime.version": "Lua 5.4",
"runtime.special": {
"fail": "error"
},
"workspace.library": ["~/.config/yazi/plugins/types.yazi/"], "workspace.library": ["~/.config/yazi/plugins/types.yazi/"],
"diagnostics.disable": ["redefined-local"] "diagnostics.disable": ["redefined-local"]
} }

View file

@ -12,6 +12,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/):
## [Unreleased] ## [Unreleased]
### Fixed
- Archive extraction fails for target paths with non-ASCII characters on Windows ([#3607])
## [v26.1.22] ## [v26.1.22]
### Added ### Added
@ -1612,3 +1616,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/):
[#3566]: https://github.com/sxyazi/yazi/pull/3566 [#3566]: https://github.com/sxyazi/yazi/pull/3566
[#3582]: https://github.com/sxyazi/yazi/pull/3582 [#3582]: https://github.com/sxyazi/yazi/pull/3582
[#3594]: https://github.com/sxyazi/yazi/pull/3594 [#3594]: https://github.com/sxyazi/yazi/pull/3594
[#3607]: https://github.com/sxyazi/yazi/pull/3607

View file

@ -99,17 +99,10 @@ function M:tidy(from, to, tmp)
fail("Failed to determine a target for '%s'", from) fail("Failed to determine a target for '%s'", from)
end end
local move if only and not fs.rename(outs[1].url, target) then
if only then fail('Failed to move "%s" to "%s"', outs[1].url, target)
move = fs.rename(outs[1].url, target) elseif not only and not fs.rename(tmp, target) then
if not move then fail('Failed to move "%s" to "%s"', tmp, target)
fail('Failed to move "%s"', outs[1].url)
end
else
move = fs.rename(tmp, target)
if not move then
fail('Failed to move "%s"', tmp)
end
end end
fs.remove("dir", tmp) fs.remove("dir", tmp)
end end