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

@@ -15,10 +15,6 @@ local get_status = require("telescope.state").get_status
local utils = {}
utils.smart_path_expand = function(path)
return path:match "^[%#<]" and vim.fn.expand(path) or vim.fn.fnameescape(path)
end
utils.get_separator = function()
return Path.path.sep
end
@@ -225,7 +221,7 @@ utils.transform_path = function(opts, path)
if opts.cwd then
cwd = opts.cwd
if not vim.in_fast_event() then
cwd = utils.smart_path_expand(opts.cwd)
cwd = vim.fn.expand(opts.cwd)
end
else
cwd = vim.loop.cwd()