or before iterator's current position in the buffer is out
of bounds, return the iterator's original face id.
}
else
{
+ if ((IT_CHARPOS (*it) >= ZV && !before_p)
+ || (IT_CHARPOS (*it) <= BEGV && before_p))
+ return it->face_id;
+
limit = IT_CHARPOS (*it) + TEXT_PROP_DISTANCE_LIMIT;
pos = it->current.pos;
DEC_TEXT_POS (pos);
else
INC_TEXT_POS (pos);
-
+
/* Determine face for CHARSET_ASCII, or unibyte. */
face_id = face_at_buffer_position (it->w,
CHARPOS (pos),