Skip to content

Commit acffded

Browse files
committed
feat(file-history): customize the max length of commit subject before truncating
1 parent 4516612 commit acffded

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/diffview/scene/views/file_history/render.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ local function render_entries(panel, parent, entries, updating)
142142
comp:add_text((" (%s)"):format(entry.commit.ref_names), "DiffviewReference")
143143
end
144144

145-
local subject = utils.str_trunc(entry.commit.subject, 72)
145+
local subject =
146+
utils.str_trunc(entry.commit.subject, c.file_history_panel.max_len_commit_subject or 72)
146147

147148
if subject == "" then
148149
subject = "[empty message]"

0 commit comments

Comments
 (0)