Commit b8e4857c authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(graft_intervals_into_buffer): When TREE is null,

pass buffer as 2nd arg to reproduce_tree.
parent fba98516
......@@ -1114,7 +1114,9 @@ graft_intervals_into_buffer (source, position, buffer)
simply copy over the interval structure. */
if ((BUF_Z (buffer) - BUF_BEG (buffer)) == TOTAL_LENGTH (source))
buffer->intervals = reproduce_tree (source, tree->parent);
Lisp_Object buf;
XSET (buf, Lisp_Buffer, buffer);
buffer->intervals = reproduce_tree (source, buf);
/* Explicitly free the old tree here. */
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