Commit d6fa96a6 authored by Eli Zaretskii's avatar Eli Zaretskii

Fix bug #10696 with crash when an empty display string is at BOB.

 src/keyboard.c (adjust_point_for_property): Don't position point
 before BEGV.
parent e96e3013
2012-02-04 Eli Zaretskii <eliz@gnu.org>
* keyboard.c (adjust_point_for_property): Don't position point
before BEGV. (Bug#10696)
2012-02-03 Paul Eggert <eggert@cs.ucla.edu>
Handle overflow when computing char display width (Bug#9496).
......
......@@ -1749,7 +1749,9 @@ adjust_point_for_property (EMACS_INT last_pt, int modified)
{
xassert (end > PT);
SET_PT (PT < last_pt
? (STRINGP (val) && SCHARS (val) == 0 ? beg - 1 : beg)
? (STRINGP (val) && SCHARS (val) == 0
? max (beg - 1, BEGV)
: beg)
: end);
check_composition = check_invisible = 1;
}
......
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