mirror of
https://github.com/dwolfe884/obsidian-x86-flow-graph.git
synced 2026-07-22 07:30:26 +00:00
more bug fixes...
This commit is contained in:
parent
520ad4512b
commit
8a1a4b98c5
3 changed files with 3 additions and 6 deletions
3
main.js
3
main.js
|
|
@ -166,9 +166,8 @@ function MakeNodeFromLineToNextJump(linenum, text, fromnode2, edgelabel) {
|
|||
newedge = { "id": edgeid, "fromNode": fromnode2, "fromSide": "bottom", "toNode": newnode["id"], "toSide": "top", "label": edgelabel, "color": edgecolor };
|
||||
edges.push(newedge);
|
||||
edgeid = edgeid + 1;
|
||||
} else {
|
||||
i = text.length + 20;
|
||||
}
|
||||
i = text.length + 20;
|
||||
} else if (visitslocs[line.trim()] == 0 && i == linenum) {
|
||||
currnode = currnode + line + "\n";
|
||||
visitslocs[line.trim()] = nodeid;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "obsidian-x86-flow",
|
||||
"name": "X86 Flow Graphing",
|
||||
"version": "1.0.0",
|
||||
"version": "1.2.0",
|
||||
"minAppVersion": "1.1.0",
|
||||
"description": "An Obsidian plugin for converting x86 code blocks into flow graphs",
|
||||
"author": "icebear",
|
||||
|
|
|
|||
|
|
@ -183,11 +183,9 @@ function MakeNodeFromLineToNextJump(linenum: any, text: any, fromnode: any, edge
|
|||
edgeid = edgeid + 1
|
||||
}
|
||||
//Otherwise just leave
|
||||
else{
|
||||
i = text.length+20
|
||||
}
|
||||
//currnode = currnode + line + "\n"
|
||||
//visitslocs[line.trim()] = nodeid
|
||||
i = text.length+20
|
||||
}
|
||||
//Have we visited this location before and is this the first line of a node?
|
||||
else if(visitslocs[line.trim()] == 0 && i == linenum){
|
||||
|
|
|
|||
Loading…
Reference in a new issue