Avoid infinite loop in display of invisible text in strings
commit701484d524835e3461f521138399893366229ae5
authorEli Zaretskii <eliz@gnu.org>
Fri, 7 Aug 2015 13:42:24 +0000 (7 16:42 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 7 Aug 2015 13:42:24 +0000 (7 16:42 +0300)
tree6852c68d7aa2cf10db2a930a0995502e11dd7b94
parent0aec2aaccd8b745fa7214f3edd453c04a04bfba4
Avoid infinite loop in display of invisible text in strings

* src/xdisp.c (handle_invisible_prop): If the next change of
invisibility spec does not mean the beginning of a visible text,
update the string position from which to start the search for the
next invisibility change.  This avoids an infinite loop when we
have more than one invisibility spec that are made inactive by
buffer-invisibility-spec.  Simplify code.  (Bug#21200)

* test/redisplay-testsuite.el (test-redisplay-4): Add a test case
for the situation that caused bug #21200.
src/xdisp.c
test/redisplay-testsuite.el