fix: directory rendering with custom highlights (#551)
These would loose their trailing '/', making them unusable
This commit is contained in:
parent
b082ad5eb9
commit
a6a4f48b14
1 changed files with 4 additions and 0 deletions
|
|
@ -770,6 +770,10 @@ M.format_entry_cols = function(entry, column_defs, col_width, adapter, is_hidden
|
||||||
else
|
else
|
||||||
local hl = get_custom_hl(external_entry, is_hidden, false, false)
|
local hl = get_custom_hl(external_entry, is_hidden, false, false)
|
||||||
if hl then
|
if hl then
|
||||||
|
-- Add the trailing / if this is a directory, this is important
|
||||||
|
if entry_type == "directory" then
|
||||||
|
name = name .. "/"
|
||||||
|
end
|
||||||
table.insert(cols, { name, hl })
|
table.insert(cols, { name, hl })
|
||||||
return cols
|
return cols
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue