Correctly handle reaching the end of the interval tree. (Bug#15344)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user