mirror of
https://github.com/sayanarijit/xplr
synced 2024-11-04 18:00:14 +00:00
Use correct base for symlink for alternate layouts
This commit is contained in:
parent
0cc8723e8e
commit
ba26752f6c
@ -2915,7 +2915,8 @@ end
|
||||
|
||||
xplr.fn.builtin.fmt_general_selection_item = function(n)
|
||||
local nl = xplr.util.paint("\\n", { add_modifiers = { "Italic", "Dim" } })
|
||||
local sh_config = { with_prefix_dots = true, without_suffix_dots = true }
|
||||
local sh_config =
|
||||
{ base = n.parent, with_prefix_dots = true, without_suffix_dots = true }
|
||||
local shortened = xplr.util.shorten(n.absolute_path, sh_config)
|
||||
if n.is_dir then
|
||||
shortened = shortened .. "/"
|
||||
|
Loading…
Reference in New Issue
Block a user