summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--web_src/js/vendor/gitgraph.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/web_src/js/vendor/gitgraph.js b/web_src/js/vendor/gitgraph.js
index 0a780c1eb5..0cf5d0f75b 100644
--- a/web_src/js/vendor/gitgraph.js
+++ b/web_src/js/vendor/gitgraph.js
@@ -372,6 +372,10 @@ export default function gitGraph(canvas, rawGraphList, config) {
inlineIntersect = false;
}
+ if (colomn === '|' && currentRow[colomnIndex - 1] && currentRow[colomnIndex - 1] === '\\') {
+ flows.splice(colomnIndex, 0, genNewFlow());
+ }
+
color = flows[colomnIndex].color;
switch (colomn) {
@@ -387,6 +391,9 @@ export default function gitGraph(canvas, rawGraphList, config) {
break;
case '|':
+ if (prevColomn && prevColomn === '\\') {
+ x += config.unitSize;
+ }
drawLineUp(x, y, color);
break;