Correctly handle reaching the end of the interval tree. (Bug#15344)

This commit is contained in:
Daniel Colascione
2014-01-13 15:41:43 -08:00
2 changed files with 18 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
2014-01-13 Daniel Colascione <dancol@dancol.org>
* textprop.c (Fremove_list_of_text_properties): Correctly
handle reaching the end of the interval tree. (Bug#15344)
2014-01-13 Martin Rudalics <rudalics@gmx.at>
* xdisp.c (resize_mini_window): Round height to a multiple of

View File

@@ -1741,6 +1741,19 @@ Return t if any property was actually removed, nil otherwise. */)
}
len -= LENGTH (i);
i = next_interval (i);
if(!i)
{
if (modified)
{
if (BUFFERP (object))
signal_after_change (XINT (start),
XINT (end) - XINT (start),
XINT (end) - XINT (start));
return Qt;
}
else
return Qnil;
}
}
}