You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have found a bug. It seems in mrope_split you favor pushing right side of the node first before pushing the left side. This is problematic because you do current_index += leaf_node->node.weight; which computes the relative index of the node on line rope.c:318 which acts on the first popped node(the right side). This has lead to some weird behavior as the index is relative to the left side. I have fixed this bug on one of my projects by replacing rope.c lines 248-259 with
I have found a bug. It seems in
mrope_split
you favor pushing right side of the node first before pushing the left side. This is problematic because you docurrent_index += leaf_node->node.weight;
which computes the relative index of the node on line rope.c:318 which acts on the first popped node(the right side). This has lead to some weird behavior as the index is relative to the left side. I have fixed this bug on one of my projects by replacing rope.c lines 248-259 withThe text was updated successfully, but these errors were encountered: