# HG changeset patch # User Karl Heuer # Date 762211345 0 # Node ID a3e4e8ac2a33a4673588c0b6eebc22d64337b404 # Parent b634e16673ab58bb689ed49e558f29a14c6a1c0c (compute_motion): Allow for invisible overlays in next_invisible lookahead. diff -r b634e16673ab -r a3e4e8ac2a33 src/indent.c --- a/src/indent.c Fri Feb 25 21:21:53 1994 +0000 +++ b/src/indent.c Fri Feb 25 21:22:25 1994 +0000 @@ -482,7 +482,9 @@ /* 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))