Skip to content

Commit

Permalink
Fix out of date commit.suffix_graph_width
Browse files Browse the repository at this point in the history
  • Loading branch information
rbong committed Aug 19, 2024
1 parent 680f369 commit 2134e76
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/flog/graph.lua
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ function M.get_graph(
-- Update graph width
if merge_branch_index > graph_width then
graph_width = merge_branch_index
commit_suffix_graph_width = merge_branch_index
end

-- Record visual parent
Expand Down Expand Up @@ -481,6 +482,7 @@ function M.get_graph(
-- Update graph width
if merge_branch_index > graph_width then
graph_width = merge_branch_index
commit_suffix_graph_width = merge_branch_index

-- Update max graph width
if graph_width > max_graph_width then
Expand Down Expand Up @@ -567,6 +569,7 @@ function M.get_graph(
-- Update graph width
if merge_branch_index > graph_width then
graph_width = merge_branch_index
commit_suffix_graph_width = merge_branch_index

-- Update max graph width
if graph_width > max_graph_width then
Expand Down Expand Up @@ -649,7 +652,6 @@ function M.get_graph(

-- Store merge end details
commit_merge_end_branch_index = merge_branch_index
commit_suffix_graph_width = graph_width

-- Build merge line
merge_line = (
Expand Down

0 comments on commit 2134e76

Please sign in to comment.