fix spelling error in ivar

This commit is contained in:
Riccardo Mottola 2021-10-28 01:40:01 +02:00
parent d6a2ce3650
commit 8ab1b66eb5
2 changed files with 10 additions and 10 deletions

View file

@ -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

View file

@ -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];
}
}