Skip to content

Commit 8548fdf

Browse files
committed
another test
1 parent 9214afb commit 8548fdf

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

lua/telescope/utils.lua

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -248,13 +248,10 @@ local path_shorten = function(filename, len, exclude)
248248
return table.concat(final_path_components)
249249
end
250250

251-
local path_abs = function(path, opts)
251+
local make_relative = function(path, opts)
252252
local cwd
253253
if opts.cwd then
254254
cwd = opts.cwd
255-
if not vim.in_fast_event() then
256-
cwd = utils.path_expand(opts.cwd)
257-
end
258255
else
259256
cwd = vim.uv.cwd()
260257
end
@@ -404,7 +401,7 @@ utils.transform_path = function(opts, path)
404401
end
405402

406403
if not vim.tbl_contains(path_display, "absolute") and not path_display.absolute then
407-
transformed_path = path_abs(transformed_path, opts)
404+
transformed_path = make_relative(transformed_path, opts)
408405
end
409406

410407
if vim.tbl_contains(path_display, "smart") or path_display.smart then

0 commit comments

Comments
 (0)