Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lua/diffview/scene/views/diff/render.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion lua/diffview/scene/views/file_history/render.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading