fix(previewer): dont treat unknown filetypes as binary file (#2567)

This commit is contained in:
Simon Hauser
2023-06-13 04:09:13 +02:00
committed by GitHub
parent 37c5268578
commit 00cf15074a

View File

@@ -279,7 +279,7 @@ previewers.file_maker = function(filepath, bufnr, opts)
end
end
-- if we still dont have a ft we need to display the binary message
if opts.ft == nil or opts.ft == "" and possible_binary then
if (opts.ft == nil or opts.ft == "") and possible_binary then
putils.set_preview_message(
bufnr,
opts.winid,