mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 10:49:08 +00:00
fix(picker.preview): pattern to detect binary files was incorrect
This commit is contained in:
parent
719d86a373
commit
bbd1a0885b
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ function M.file(ctx)
|
|||
line = line:sub(1, ctx.picker.opts.previewers.file.max_line_length) .. "..."
|
||||
end
|
||||
-- Check for binary data in the current line
|
||||
if line:find("[%z\1-\8\13\14\16-\31]") then
|
||||
if line:find("[%z\1-\8\11\12\14-\31]") then
|
||||
ctx.preview:notify("binary file", "warn")
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue