fix: previewers & entry maker file encoding (#2430)

(cherry picked from commit c8b65238e8)
This commit is contained in:
James Trew
2023-05-24 17:08:36 +02:00
committed by Simon Hauser
parent a0208d8d60
commit f97f4a04f7
4 changed files with 80 additions and 36 deletions
+2 -1
View File
@@ -319,9 +319,10 @@ do
end
end
local text = opts.file_encoding and vim.iconv(entry.text, opts.file_encoding, "utf8") or entry.text
local display, hl_group, icon = utils.transform_devicons(
entry.filename,
string.format(display_string, display_filename, coordinates, entry.text),
string.format(display_string, display_filename, coordinates, text),
disable_devicons
)