Commit 52283633 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

(find_interval): Don't rebalance during signal handling.

parent 6c9e58c4
This diff is collapsed.
......@@ -612,7 +612,8 @@ find_interval (tree, position)
if (relative_position > TOTAL_LENGTH (tree))
abort (); /* Paranoia */
tree = balance_possible_root_interval (tree);
if (!handling_signal)
tree = balance_possible_root_interval (tree);
while (1)
......@@ -720,7 +721,9 @@ previous_interval (interval)
/* Find the interval containing POS given some non-NULL INTERVAL
in the same tree. Note that we need to update interval->position
if we go down the tree. */
if we go down the tree.
To speed up the process, we assume that the ->position of
I and all its parents is already uptodate. */
update_interval (i, pos)
register INTERVAL i;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment