From: Karl Heuer Date: Fri, 25 Feb 1994 21:22:25 +0000 (+0000) Subject: (compute_motion): Allow for invisible overlays in next_invisible lookahead. X-Git-Tag: emacs-19.34~9760 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7ea9c0209a19c13dcbe0088585155550d1605bc9;p=emacs.git (compute_motion): Allow for invisible overlays in next_invisible lookahead. --- diff --git a/src/indent.c b/src/indent.c index 5824dbc9993..e2711c1fdee 100644 --- a/src/indent.c +++ b/src/indent.c @@ -482,7 +482,9 @@ compute_motion (from, fromvpos, fromhpos, to, tovpos, tohpos, width, hscroll, ta /* This is just an estimate to give reasonable performance; nothing should go wrong if it is too small. */ - XFASTINT (limit) = pos + 100; + limit = Fnext_overlay_change (position); + if (XFASTINT (limit) > pos + 100) + XFASTINT (limit) = pos + 100; end = Fnext_single_property_change (position, Qinvisible, Fcurrent_buffer (), limit); if (INTEGERP (end))