Skip to content

Commit

Permalink
fix: empty extension files
Browse files Browse the repository at this point in the history
  • Loading branch information
boydaihungst committed Nov 19, 2024
1 parent 7c9c9de commit f4f5a47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ local render_numbers = ya.sync(function(_, mode, styles, resizable_entity_childr
entity.highlights = function(entity_highlight_self)
local name = entity_highlight_self._file.name:gsub("\r", "?", 1)
local tail = entity_highlight_self._file.cha.is_dir and ""
or ("." .. entity_highlight_self._file.url.ext(entity_highlight_self._file.url))
or ("." .. (entity_highlight_self._file.url.ext(entity_highlight_self._file.url) or ""))
local max_length = utf8.len(name) or 0
for _, c in ipairs(entity_highlight_self._children) do
if c[1] and type(c[1]) == "string" and c[1] == "highlights" and c.resizable then
Expand Down

0 comments on commit f4f5a47

Please sign in to comment.