fix: escape backslashes in ImageMagick font path parameter (#3708)

This commit is contained in:
三咲雅 misaki masa 2026-02-22 19:59:47 +08:00 committed by GitHub
parent d84f0b1265
commit 16aa3cd0fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View file

@ -40,9 +40,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/):
### Fixed
- Archive extraction fails for target paths with non-ASCII characters on Windows ([#3607])
- Make `ya pkg` ignore default remote name in user Git config ([#3648])
- Chafa v1.18.1 causes random ghost keypresses when previewing images ([#3678])
- Make `ya pkg` ignore default remote name in user Git config ([#3648])
- Archive extraction fails for target paths with non-ASCII characters on Windows ([#3607])
- Escape backslashes in ImageMagick font path parameter ([#3708])
### Improved
@ -1666,3 +1667,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/):
[#3687]: https://github.com/sxyazi/yazi/pull/3687
[#3689]: https://github.com/sxyazi/yazi/pull/3689
[#3696]: https://github.com/sxyazi/yazi/pull/3696
[#3708]: https://github.com/sxyazi/yazi/pull/3708

View file

@ -33,7 +33,7 @@ function M:preload(job)
"-gravity",
"center",
"-font",
tostring(job.file.path),
tostring(job.file.path):gsub("\\", "\\\\"),
"-pointsize",
64,
"xc:white",