Revert "expand paths more smartly (#2599)" (#2615)

This reverts commit f52ea4061d.
This commit is contained in:
James Trew
2023-07-21 21:50:44 -04:00
committed by GitHub
parent f52ea4061d
commit 7bb2fcecdc
8 changed files with 24 additions and 30 deletions

View File

@@ -256,7 +256,7 @@ previewers.file_maker = function(filepath, bufnr, opts)
end
if opts.bufname ~= filepath then
if not vim.in_fast_event() then
filepath = utils.smart_path_expand(filepath)
filepath = vim.fn.expand(filepath)
end
vim.loop.fs_stat(filepath, function(_, stat)
if not stat then