Skip to content

Commit 7c149a4

Browse files
fix: Remove unneeded space when not using icons (#229)
1 parent 6baa30d commit 7c149a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/diffview/hl.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ function M.hi_clear(groups)
311311
end
312312

313313
function M.get_file_icon(name, ext, render_data, line_idx, offset)
314-
if not config.get_config().use_icons then return " " end
314+
if not config.get_config().use_icons then return "" end
315315

316316
if not web_devicons then
317317
local ok
@@ -324,7 +324,7 @@ function M.get_file_icon(name, ext, render_data, line_idx, offset)
324324
.. "Set `use_icons = false` in your config to stop seeing this message."
325325
)
326326

327-
return " "
327+
return ""
328328
end
329329
end
330330

0 commit comments

Comments
 (0)