Skip to content

Commit 0b1bb96

Browse files
zeripathsilverwindtechknowlogick
authored
Fix gitgraph branch continues after merge (#12044)
* Fix gitgraph branch continues after merge After fixing the initial problem in #11981 another problem has come to light... Fix #11981 (part 2) Signed-off-by: Andrew Thornton <[email protected]> * Update web_src/js/vendor/gitgraph.js * Apply suggestions from code review Co-authored-by: silverwind <[email protected]> Co-authored-by: silverwind <[email protected]> Co-authored-by: techknowlogick <[email protected]>
1 parent ebc35f2 commit 0b1bb96

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

web_src/js/vendor/gitgraph.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,10 @@ export default function gitGraph(canvas, rawGraphList, config) {
372372
inlineIntersect = false;
373373
}
374374

375+
if (colomn === '|' && currentRow[colomnIndex - 1] && currentRow[colomnIndex - 1] === '\\') {
376+
flows.splice(colomnIndex, 0, genNewFlow());
377+
}
378+
375379
color = flows[colomnIndex].color;
376380

377381
switch (colomn) {
@@ -387,6 +391,9 @@ export default function gitGraph(canvas, rawGraphList, config) {
387391
break;
388392

389393
case '|':
394+
if (prevColomn && prevColomn === '\\') {
395+
x += config.unitSize;
396+
}
390397
drawLineUp(x, y, color);
391398
break;
392399

0 commit comments

Comments
 (0)