]> git.eshelyaron.com Git - emacs.git/commit
Don't hang when display objects are displaced by line or wrap-prefixes
authorPo Lu <luangruo@yahoo.com>
Wed, 31 Jan 2024 06:34:19 +0000 (14:34 +0800)
committerEshel Yaron <me@eshelyaron.com>
Wed, 31 Jan 2024 20:16:58 +0000 (21:16 +0100)
commite733003cf24d6cb6b9ef2d850a37264fcdaa601c
treed29713f32375bbff0a0bc025304beeae5c899af3
parentc5c5e079fd304c0aecd0e69367fd8ec3af294c2f
Don't hang when display objects are displaced by line or wrap-prefixes

This fixes a hang that would frequently rear its ugly head while
displaying messages in the `telega.el' instant messenger client,
which inserts images approaching the width of the window with
line and wrap prefixes.

* src/xdisp.c (move_it_in_display_line_to): If a line or wrap
prefix is set in place, do not generate continuation lines until
a minimum of one glyph has been produced outside that prefix.
(move_it_to): Remove the previous workaround that could not
recover from errors caused by display strings.
(display_line): Synchronize with move_it_in_display_line_to;
remove old workaround that only provided for oversized wrap
prefixes comprising `space' display objects.

(cherry picked from commit 5f24c9a4c82f7106e22cac8a5201db8307239837)
src/xdisp.c