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.
This commit is contained in:
@@ -485,16 +485,18 @@ index c9fe93a57b..f7574efb39 100644
|
|||||||
+ = ns_ax_selected_overlay_text (b, BUF_BEGV (b), BUF_ZV (b),
|
+ = ns_ax_selected_overlay_text (b, BUF_BEGV (b), BUF_ZV (b),
|
||||||
+ &selected_line);
|
+ &selected_line);
|
||||||
+ if (candidate)
|
+ if (candidate)
|
||||||
{
|
- {
|
||||||
|
+ {
|
||||||
- int selected_line = -1;
|
- int selected_line = -1;
|
||||||
- NSString *candidate
|
- NSString *candidate
|
||||||
- = ns_ax_selected_overlay_text (b, BUF_BEGV (b), BUF_ZV (b),
|
- = ns_ax_selected_overlay_text (b, BUF_BEGV (b), BUF_ZV (b),
|
||||||
- &selected_line);
|
- &selected_line);
|
||||||
- if (candidate)
|
- if (candidate)
|
||||||
+ /* Deduplicate: only announce when the candidate changed. */
|
+ /* Deduplicate: only announce when the candidate changed. */
|
||||||
+ if (![candidate isEqualToString:
|
+ if (![candidate isEqualToString:
|
||||||
+ self.cachedCompletionAnnouncement])
|
+ self.cachedCompletionAnnouncement])
|
||||||
{
|
- {
|
||||||
|
+ {
|
||||||
- /* Deduplicate: only announce when the candidate changed. */
|
- /* Deduplicate: only announce when the candidate changed. */
|
||||||
- if (![candidate isEqualToString:
|
- if (![candidate isEqualToString:
|
||||||
- self.cachedCompletionAnnouncement])
|
- self.cachedCompletionAnnouncement])
|
||||||
@@ -534,8 +536,10 @@ index c9fe93a57b..f7574efb39 100644
|
|||||||
+ NSApp,
|
+ NSApp,
|
||||||
+ NSAccessibilityAnnouncementRequestedNotification,
|
+ NSAccessibilityAnnouncementRequestedNotification,
|
||||||
+ annInfo);
|
+ annInfo);
|
||||||
}
|
- }
|
||||||
}
|
+ }
|
||||||
|
- }
|
||||||
|
+ }
|
||||||
+ }
|
+ }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user