Skip to content

Commit

Permalink
revert: "fix(sources.path): escape paths in vim.fn.system() call"
Browse files Browse the repository at this point in the history
This reverts commit 3312fb1.
  • Loading branch information
Bekaboo committed Jan 20, 2025
1 parent 3312fb1 commit 0139787
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lua/dropbar/sources/path.lua
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@ local function preview(sym)
if stat.size == 0 then
return preview_msg('Empty file')
end
if
not vim.fn.system({ 'file', vim.fn.shellescape(path) }):match('text')
then
if not vim.fn.system({ 'file', path }):match('text') then
return preview_msg('Binary file')
end

Expand Down

0 comments on commit 0139787

Please sign in to comment.