From d282032b3d447767059979f36d3ff5e2c0383f6d Mon Sep 17 00:00:00 2001 From: Arijit Basu Date: Fri, 7 Jul 2023 09:48:09 +0530 Subject: [PATCH] Fix symlink base again --- src/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/init.lua b/src/init.lua index 1d994cb..21228bf 100644 --- a/src/init.lua +++ b/src/init.lua @@ -2915,8 +2915,7 @@ end xplr.fn.builtin.fmt_general_selection_item = function(n) local nl = xplr.util.paint("\\n", { add_modifiers = { "Italic", "Dim" } }) - local sh_config = - { base = n.parent, with_prefix_dots = true, without_suffix_dots = true } + local sh_config = { 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 .. "/" @@ -2968,7 +2967,8 @@ xplr.fn.builtin.fmt_general_table_row_cols_1 = function(m) if m.is_broken then r = r .. "×" else - local symlink_path = xplr.util.shorten(m.symlink.absolute_path) + local symlink_path = + xplr.util.shorten(m.symlink.absolute_path, { base = m.parent }) if m.symlink.is_dir then symlink_path = symlink_path .. "/" end