From ea9d231177ab6f2c6db7882b9b78f226429caccb Mon Sep 17 00:00:00 2001 From: Daneel Date: Wed, 4 Mar 2026 13:26:20 +0100 Subject: [PATCH] Revert "patches: fix B5 - replace goto skip_overlay_scan with if-block" This reverts commit a69aec96d8f47f0fbf7f532f229d86ba6b728bd3. --- ...nounce-child-frame-completion-candidates-for-Vo.patch | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/patches/0008-ns-announce-child-frame-completion-candidates-for-Vo.patch b/patches/0008-ns-announce-child-frame-completion-candidates-for-Vo.patch index 84b197d..3d4f456 100644 --- a/patches/0008-ns-announce-child-frame-completion-candidates-for-Vo.patch +++ b/patches/0008-ns-announce-child-frame-completion-candidates-for-Vo.patch @@ -269,7 +269,7 @@ index c9fe93a57b..f7574efb39 100644 + byte_pos++; + char_pos++; + } -+ if (char_pos > lstart && nlines < 512) ++ if (char_pos > lstart && nlines < 128) + { + line_starts[nlines] = lstart; + line_ends[nlines] = char_pos; @@ -477,8 +477,8 @@ index c9fe93a57b..f7574efb39 100644 + echo produced by postTextChangedNotification, making typed + characters inaudible. VoiceOver should read the overlay + candidate only when the user navigates (C-n/C-p), not types. */ -+ if (MINI_WINDOW_P (w) && !didTextChange) -+ { ++ if (!MINI_WINDOW_P (w) || didTextChange) ++ goto skip_overlay_scan; + + int selected_line = -1; + NSString *candidate @@ -537,7 +537,8 @@ index c9fe93a57b..f7574efb39 100644 } } } -+ } + ++ skip_overlay_scan: /* --- Cursor moved or selection changed --- Independent check from the overlay branch above. */ if (point != self.cachedPoint || markActive != self.cachedMarkActive)