From 8ab1b66eb5b043cb3b58b757d0537bfe1ad49395 Mon Sep 17 00:00:00 2001 From: Riccardo Mottola Date: Thu, 28 Oct 2021 01:40:01 +0200 Subject: [PATCH] fix spelling error in ivar --- Modules/Editors/ProjectCenter/PCEditor.h | 2 +- Modules/Editors/ProjectCenter/PCEditor.m | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Modules/Editors/ProjectCenter/PCEditor.h b/Modules/Editors/ProjectCenter/PCEditor.h index 4e30242..f9b0531 100644 --- a/Modules/Editors/ProjectCenter/PCEditor.h +++ b/Modules/Editors/ProjectCenter/PCEditor.h @@ -77,7 +77,7 @@ // location of the highlighted delimiter characters // NSNotFound means not set - NSUInteger highlited_chars[2]; + NSUInteger highlighted_chars[2]; // the stored color and font attributes of the highlit character, so // that they can be restored later on when the character is un-highlit diff --git a/Modules/Editors/ProjectCenter/PCEditor.m b/Modules/Editors/ProjectCenter/PCEditor.m index 87775d4..a16dd50 100644 --- a/Modules/Editors/ProjectCenter/PCEditor.m +++ b/Modules/Editors/ProjectCenter/PCEditor.m @@ -222,8 +222,8 @@ previousBGColor = nil; previousFont = nil; - highlited_chars[0] = NSNotFound; - highlited_chars[1] = NSNotFound; + highlighted_chars[0] = NSNotFound; + highlighted_chars[1] = NSNotFound; undoManager = [[NSUndoManager alloc] init]; } @@ -1372,10 +1372,10 @@ NSUInteger FindDelimiterInString(NSString * string, for (i = 0; i < 2; i++) { - if (highlited_chars[i] == NSNotFound) + if (highlighted_chars[i] == NSNotFound) continue; - NSRange r = NSMakeRange(highlited_chars[i], 1); + NSRange r = NSMakeRange(highlighted_chars[i], 1); // restore the character's color and font attributes if (previousFont != nil) @@ -1401,7 +1401,7 @@ NSUInteger FindDelimiterInString(NSString * string, range:r]; } - highlited_chars[i] = NSNotFound; + highlighted_chars[i] = NSNotFound; } [textStorage endEditing]; @@ -1413,11 +1413,11 @@ NSUInteger FindDelimiterInString(NSString * string, for (i = 0; i < 2; i++) { - if (highlited_chars[i] == NSNotFound) + if (highlighted_chars[i] == NSNotFound) return; NSTextStorage *textStorage = [editorView textStorage]; - NSRange r = NSMakeRange(highlited_chars[i], 1); + NSRange r = NSMakeRange(highlighted_chars[i], 1); NSRange tmp; NSAssert(textStorage, @"textstorage can't be nil"); @@ -1487,8 +1487,8 @@ NSUInteger FindDelimiterInString(NSString * string, // and in case a delimiter is found, highlight it if (result != NSNotFound) { - highlited_chars[0] = selectedRange.location; - highlited_chars[1] = result; + highlighted_chars[0] = selectedRange.location; + highlighted_chars[1] = result; [self highlightCharacterPair :editorView]; } }