Subject: bug#72710: 31.0.50; visual-wrap-prefix-mode freezes rendering in conjunction with diff-hl (fringe display)

From: Jim Porter <[email-masked]>
Date: Sat, 24 Aug 2024 09:29:17 -0700

On 8/24/2024 2:01 AM, Eli Zaretskii wrote:
>> Date: Mon, 19 Aug 2024 22:15:51 +1000
>> From: "Mark Hepburn" <[email-masked]>
>>
>> Turning on the recently-merged visual-wrap-prefix-mode while using the
>> fringe display of diff-hl (a mode to display uncommitted file changes in
>> the fringe area) causes rendering to completely freeze.  No backtrace is
>> reported, although subsequent visual-line-move commands produce an
>> error.  Emacs itself is responsive, so the file can be re-opened with
>> `find-alternate-file'.
[snip]
> Jim, could you please look into this?

This sounds like bug#72721. Mark, could you try applying Eli's patch 
here and see if it fixes the bug? 
<https://lists.gnu.org/archive/html/bug-gnu-emacs/2024-08/msg00919.html>