fix(previewer): dont treat unknown filetypes as binary file (#2567)
This commit is contained in:
@@ -279,7 +279,7 @@ previewers.file_maker = function(filepath, bufnr, opts)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
-- if we still dont have a ft we need to display the binary message
|
-- 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(
|
putils.set_preview_message(
|
||||||
bufnr,
|
bufnr,
|
||||||
opts.winid,
|
opts.winid,
|
||||||
|
|||||||
Reference in New Issue
Block a user