From 6dd3c9bfe49ece1229f7cae77fad6dc8664daa74 Mon Sep 17 00:00:00 2001 From: Daneel Date: Wed, 4 Mar 2026 13:50:45 +0100 Subject: [PATCH] patches: fix if(candidate) block indentation in 0008 The if(candidate) block's braces and body were not consistently indented relative to the enclosing if(MINI_WINDOW_P) block. Change context lines to deletion+addition pairs to correct: - Opening brace: tab -> tab+4 (col 8 -> col 12) - Body comment and inner if: tab+2 -> tab+6 (col 10 -> col 14) - Inner if brace: tab+4 -> tab+6 (col 12 -> col 14) - Inner and outer closing braces: tab+4->tab+6, tab->tab+4 This is a pre-existing indentation inconsistency that violates GNU coding style; the if(candidate) check was at col 10 but its brace was at col 8. --- ...ld-frame-completion-candidates-for-Vo.patch | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 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 043cd43..748d430 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 @@ -485,16 +485,18 @@ index c9fe93a57b..f7574efb39 100644 + = ns_ax_selected_overlay_text (b, BUF_BEGV (b), BUF_ZV (b), + &selected_line); + if (candidate) - { +- { ++ { - int selected_line = -1; - NSString *candidate - = ns_ax_selected_overlay_text (b, BUF_BEGV (b), BUF_ZV (b), - &selected_line); - if (candidate) -+ /* Deduplicate: only announce when the candidate changed. */ -+ if (![candidate isEqualToString: -+ self.cachedCompletionAnnouncement]) - { ++ /* Deduplicate: only announce when the candidate changed. */ ++ if (![candidate isEqualToString: ++ self.cachedCompletionAnnouncement]) +- { ++ { - /* Deduplicate: only announce when the candidate changed. */ - if (![candidate isEqualToString: - self.cachedCompletionAnnouncement]) @@ -534,8 +536,10 @@ index c9fe93a57b..f7574efb39 100644 + NSApp, + NSAccessibilityAnnouncementRequestedNotification, + annInfo); - } - } +- } ++ } +- } ++ } + } }