File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -172,12 +172,22 @@ function M.nvim_get_graph_hl_callback(buffer, instance_number)
172
172
173
173
-- Set highlight groups for merge
174
174
if commit .moved_parent then
175
+ local fork_col = vim .fn .virtcol2col (winid , line , 2 * commit .branch_index )
176
+
177
+ vim .api .nvim_buf_add_highlight (
178
+ buffer ,
179
+ - 1 ,
180
+ hl_group_names [current_hl [commit .branch_index ] or commit_hl_cache [commit .branch_index ]],
181
+ line - 1 ,
182
+ merge_col - 1 ,
183
+ fork_col - 1 )
184
+
175
185
vim .api .nvim_buf_add_highlight (
176
186
buffer ,
177
187
- 1 ,
178
188
hl_group_names [current_hl [commit .merge_end_branch_index ] or commit_hl_cache [commit .merge_end_branch_index ]],
179
189
line - 1 ,
180
- vim . fn . virtcol2col ( winid , line , 2 * commit . branch_index ) - 1 ,
190
+ fork_col - 1 ,
181
191
end_merge_col )
182
192
else
183
193
vim .api .nvim_buf_add_highlight (
You can’t perform that action at this time.
0 commit comments