mirror of
https://github.com/zoriya/telescope.nvim.git
synced 2026-08-16 02:45:09 +00:00
fix: expand/normalize paths more selectively (#2628)
(cherry picked from commit 3b8399c273)
This commit is contained in:
@@ -166,7 +166,7 @@ previewers.file_maker = function(filepath, bufnr, opts)
|
||||
opts.ft = opts.use_ft_detect and pfiletype.detect(filepath)
|
||||
if opts.bufname ~= filepath then
|
||||
if not vim.in_fast_event() then
|
||||
filepath = vim.fn.expand(filepath)
|
||||
filepath = utils.path_expand(filepath)
|
||||
end
|
||||
if type(opts.preview.filetype_hook) == "function" then
|
||||
if not opts.preview.filetype_hook(filepath, bufnr, opts) then
|
||||
|
||||
Reference in New Issue
Block a user