diff --git a/lua/diffview/scene/views/diff/render.lua b/lua/diffview/scene/views/diff/render.lua index f8352579..612c8953 100644 --- a/lua/diffview/scene/views/diff/render.lua +++ b/lua/diffview/scene/views/diff/render.lua @@ -123,7 +123,8 @@ local function render_file(conf, panel, comp, show_path, depth, sign_pad) if file.stats then if file.stats.additions then - comp:add_text(" " .. file.stats.additions, "DiffviewFilePanelInsertions") + comp:add_text(" ") + comp:add_text(tostring(file.stats.additions), "DiffviewFilePanelInsertions") comp:add_text(", ") comp:add_text(tostring(file.stats.deletions), "DiffviewFilePanelDeletions") elseif file.stats.conflicts then diff --git a/lua/diffview/scene/views/file_history/render.lua b/lua/diffview/scene/views/file_history/render.lua index 63b0c191..49dba1ff 100644 --- a/lua/diffview/scene/views/file_history/render.lua +++ b/lua/diffview/scene/views/file_history/render.lua @@ -46,7 +46,8 @@ local function render_file_stats(comp, stats, stat_style) local show_bar = stat_style == "bar" or stat_style == "both" if show_number then - comp:add_text(" " .. stats.additions, "DiffviewFilePanelInsertions") + comp:add_text(" ") + comp:add_text(tostring(stats.additions), "DiffviewFilePanelInsertions") comp:add_text(", ") comp:add_text(tostring(stats.deletions), "DiffviewFilePanelDeletions") end