Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(previewer): don't escape paths for fs_stat #2996

Merged
merged 1 commit into from
Mar 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions lua/telescope/previewers/buffer_previewer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -495,11 +495,11 @@ previewers.cat = defaulter(function(opts)
end,

get_buffer_by_name = function(_, entry)
return from_entry.path(entry, false)
return from_entry.path(entry, false, false)
end,

define_preview = function(self, entry)
local p = from_entry.path(entry, true)
local p = from_entry.path(entry, true, false)
if p == nil or p == "" then
return
end
Expand Down Expand Up @@ -558,7 +558,7 @@ previewers.vimgrep = defaulter(function(opts)
end,

get_buffer_by_name = function(_, entry)
return from_entry.path(entry, false)
return from_entry.path(entry, false, false)
end,

define_preview = function(self, entry)
Expand All @@ -569,7 +569,7 @@ previewers.vimgrep = defaulter(function(opts)
or false
local p
if not has_buftype then
p = from_entry.path(entry, true)
p = from_entry.path(entry, true, false)
if p == nil or p == "" then
return
end
Expand Down Expand Up @@ -982,7 +982,7 @@ previewers.git_file_diff = defaulter(function(opts)

define_preview = function(self, entry)
if entry.status and (entry.status == "??" or entry.status == "A ") then
local p = from_entry.path(entry, true)
local p = from_entry.path(entry, true, false)
if p == nil or p == "" then
return
end
Expand Down
Loading