diff --git a/src/ChangeLog b/src/ChangeLog index d8d14005d1e2c0e0dbf7e6419f447dd40084f178..489c40a4d4d0c3fce3ecece6fe851709e8de379b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,10 @@ +2012-05-30 Eli Zaretskii + + * xdisp.c (handle_stop): Detect whether we have overlay strings + loaded by testing it->current.overlay_string_index to be + non-negative, instead of checking whether n_overlay_strings is + positive. (Bug#11587) + 2012-05-30 Chong Yidong * keymap.c (describe_map_tree): Revert 2011-07-07 change (Bug#1169). diff --git a/src/xdisp.c b/src/xdisp.c index a3227b556a939abefdd7313315f917f04138ba2e..6762bf85eb459f47c1856c89df82f8858e2897ef 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -3157,7 +3157,7 @@ handle_stop (struct it *it) onto the stack one more time, which is not expected by the rest of the code that processes overlay strings. */ - || (it->n_overlay_strings <= 0 + || (it->current.overlay_string_index < 0 ? !get_overlay_strings_1 (it, 0, 0) : 0)) {