Skip to content

Commit 76fa6d3

Browse files
Feramad-si
authored andcommitted
Fix typos
1 parent dc5d8a2 commit 76fa6d3

30 files changed

+33
-33
lines changed

ColorPicker/ColorPicker/CPKKDTree.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
*
3636
* @param key An array of NSNumber objects with as many elements as the tree has dimensions.
3737
*
38-
* @return The object assoicated with the point closest to |key| by Euclidean distance.
38+
* @return The object associated with the point closest to |key| by Euclidean distance.
3939
*/
4040
- (id)nearestNeighborTo:(NSArray *)key;
4141

ThirdParty/CGSInternal/CGSWindow.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ CG_EXTERN CGError CGSWindowSetCanAccelerate(CGSConnectionID cid, CGSWindowID wid
186186

187187

188188
#pragma mark system status items
189-
/*! Registers or unregisters a window as a global status item (see `NSStatusItem`, `NSMenuExtra`). Once a window is registered, the window server takes care of placing it in the apropriate location. */
189+
/*! Registers or unregisters a window as a global status item (see `NSStatusItem`, `NSMenuExtra`). Once a window is registered, the window server takes care of placing it in the appropriate location. */
190190
CG_EXTERN CGError CGSRegisterWindowWithSystemStatusBar(CGSConnectionID cid, CGSWindowID wid, int priority);
191191
CG_EXTERN CGError CGSUnregisterWindowWithSystemStatusBar(CGSConnectionID cid, CGSWindowID wid);
192192

ThirdParty/SCEvents/Source/SCEvents.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ - (id)init
9898
* Flushes the event stream synchronously by sending events that have already
9999
* occurred but not yet delivered.
100100
*
101-
* @return A BOOL indicating the sucess or failure
101+
* @return A BOOL indicating the success or failure
102102
*/
103103
- (BOOL)flushEventStreamSync
104104
{
@@ -121,7 +121,7 @@ - (BOOL)flushEventStreamSync
121121
* Flushes the event stream asynchronously by sending events that have already
122122
* occurred but not yet delivered.
123123
*
124-
* @return A BOOL indicating the sucess or failure
124+
* @return A BOOL indicating the success or failure
125125
*/
126126
- (BOOL)flushEventStreamAsync
127127
{

iTerm2XCTests/VT100ScreenTest.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ - (void)testInit {
122122
XCTAssert([s length] == 0);
123123
}
124124

125-
// Append some stuff to it to make sure we can retreive it.
125+
// Append some stuff to it to make sure we can retrieve it.
126126
for (int i = 0; i < [screen height] - 1; i++) {
127127
[screen terminalAppendString:[NSString stringWithFormat:@"Line %d", i]];
128128
[screen terminalLineFeed];

plists/PresetKeyMappings.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@
631631
<string>[1;6C</string>
632632
</dict>
633633
</dict>
634-
<key>Terminal.app Compatiblity</key>
634+
<key>Terminal.app Compatibility</key>
635635
<dict>
636636
<key>0x2d-0x40000</key>
637637
<dict>

sources/AppleScriptTest.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ - (void)testCreateWindowWithDefaultProfileAndCommand {
171171
}
172172

173173
- (void)testSelectWindow {
174-
// Beccause windows are ordered by their z-position, the first window is
174+
// Because windows are ordered by their z-position, the first window is
175175
// the most recently created one. In the past, there was a "terminal
176176
// windows" property that was ordered by creation time.
177177
NSArray *commands = @[ @"create window with default profile",

sources/Autocomplete.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ @implementation AutocompleteView
3232
// Words before the word at the cursor.
3333
NSMutableArray* context_;
3434

35-
// x,y coords where prefix occured.
35+
// x,y coords where prefix occurred.
3636
int startX_;
3737
long long startY_; // absolute coord
3838

sources/LineBlock.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -747,8 +747,8 @@ - (int) _lineRawOffset: (int) anIndex
747747
// Convert $ in a context where it refers to the end of string to kSuffixChar
748748
// ^ is NOT start-of-string when:
749749
// - it is escaped
750-
// - it is preceeded by an unescaped [
751-
// - it is preceeded by an unescaped [:
750+
// - it is preceded by an unescaped [
751+
// - it is preceded by an unescaped [:
752752
// $ is NOT end-of-string when:
753753
// - it is escaped
754754
//

sources/LineBuffer.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ - (int)copyLineToBuffer:(screen_char_t *)buffer
454454
}
455455
}
456456
NSLog(@"Couldn't find line %d", lineNum);
457-
NSAssert(NO, @"Tried to get non-existant line");
457+
NSAssert(NO, @"Tried to get non-existent line");
458458
return NO;
459459
}
460460

@@ -507,7 +507,7 @@ - (ScreenCharArray *)wrappedLineAtIndex:(int)lineNum
507507
}
508508
}
509509
NSLog(@"Couldn't find line %d", lineNum);
510-
NSAssert(NO, @"Tried to get non-existant line");
510+
NSAssert(NO, @"Tried to get non-existent line");
511511
return nil;
512512
}
513513

sources/MovePaneController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ - (BOOL)dropInSession:(PTYSession *)dest
171171
didSplit_ = YES;
172172

173173
if ([self.session isTmuxClient]) {
174-
// Do this after setting didSplit becasue a second call to this method
174+
// Do this after setting didSplit because a second call to this method
175175
// will happen no matter what and we want it to do nothing if we get
176176
// here.
177177
if (isMove_) {

sources/NSStringITerm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// NSStringJTerminal.h
44
//
5-
// Additional fucntion to NSString Class by Category
5+
// Additional function to NSString Class by Category
66
// 2001.11.13 by Y.Hanahara
77
// 2002.05.18 by Kiichi Kusama
88
/*

sources/NSStringITerm.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ static int maximal_subpart_of_row(const unsigned char *datap,
335335
return bytesInRow;
336336
}
337337

338-
// This function finds the longest intial sequence of bytes that look like a valid UTF-8 sequence.
338+
// This function finds the longest initial sequence of bytes that look like a valid UTF-8 sequence.
339339
// It's used to gobble them up and replace them with a <?> replacement mark in an invalid sequence.
340340
static int minimal_subpart(const unsigned char *datap, int datalen)
341341
{

sources/PTYTab.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2236,7 +2236,7 @@ + (__kindof NSView *)_recusiveRestoreSplitters:(NSDictionary<NSString *, id> *)a
22362236
NSString *uniqueId = [PTYSession guidInArrangement:arrangement[TAB_ARRANGEMENT_SESSION]];
22372237
if (windowPaneNumber && idMap[windowPaneNumber]) {
22382238
// Creating splitters for a tmux tab. The arrangement is marked
2239-
// up with window pane IDs, whcih may or may not already exist.
2239+
// up with window pane IDs, which may or may not already exist.
22402240
// When restoring a tmux tab, then all session dicts in the
22412241
// arrangement have a window pane. The presence of a
22422242
// TAB_ARRANGEMENT_TMUX_WINDOW_PANE implies that theMap is

sources/PTYTask.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ extern NSString *kCoprocessStatusChangeNotification;
9191
- (BOOL)tryToAttachToServerWithProcessId:(pid_t)thePid;
9292

9393
// Wire up the server as the task's file descriptor and process. The caller
94-
// will ahve connected to the server to get this info. Requires
94+
// will have connected to the server to get this info. Requires
9595
// [iTermAdvancedSettingsModel runJobsInServers].
9696
- (void)attachToServer:(iTermFileDescriptorServerConnection)serverConnection;
9797

sources/PTYTask.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ - (NSString*)getWorkingDirectory {
10241024
}
10251025
}
10261026
if (ret <= 0) {
1027-
// An error occured
1027+
// An error occurred
10281028
DLog(@"Failed with error %d", ret);
10291029
return nil;
10301030
} else if (ret != sizeof(vpi)) {

sources/PTYTextView.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ - (BOOL)cursorVisible {
10671067
- (void)drawRect:(NSRect)rect {
10681068
BOOL savedCursorVisible = _drawingHelper.cursorVisible;
10691069

1070-
// Try to use a saved grid if one is available. If it suceeds, that implies that the cursor was
1070+
// Try to use a saved grid if one is available. If it succeeds, that implies that the cursor was
10711071
// recently hidden and what we're drawing is how the screen looked just before the cursor was
10721072
// hidden. Therefore, we'll temporarily show the cursor, but we'll need to restore cursorVisible's
10731073
// value when we're done.

sources/PasteViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ - (instancetype)initWithContext:(PasteContext *)pasteContext
3030
if (self) {
3131
[self view];
3232

33-
// Fix up frames beacuse the view is flipped.
33+
// Fix up frames because the view is flipped.
3434
for (NSView *view in [self.view subviews]) {
3535
NSRect frame = [view frame];
3636
frame.origin.y = NSMaxY([self.view bounds]) - NSMaxY([view frame]);

sources/PseudoTerminal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ extern NSString *const kPseudoTerminalStateRestorationWindowArrangementKey;
105105
savedWindowType:(iTermWindowType)savedWindowType
106106
screen:(int)screenIndex;
107107

108-
// isHotkey indicates if this is a hotkey window, which recieves special
108+
// isHotkey indicates if this is a hotkey window, which receives special
109109
// treatment and must be unique.
110110
- (instancetype)initWithSmartLayout:(BOOL)smartLayout
111111
windowType:(iTermWindowType)windowType

sources/PseudoTerminal.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2845,7 +2845,7 @@ - (NSSize)windowWillResize:(NSWindow *)sender toSize:(NSSize)proposedFrameSize {
28452845
snapWidth = snapHeight = NO;
28462846
}
28472847

2848-
// If resizing a full-width/height X-of-screen window in a direction perpindicular to the screen
2848+
// If resizing a full-width/height X-of-screen window in a direction perpendicular to the screen
28492849
// edge it's attached to, turn off snapping in the direction parallel to the edge.
28502850
if (windowType_ == WINDOW_TYPE_RIGHT || windowType_ == WINDOW_TYPE_LEFT) {
28512851
if (proposedFrameSize.height == self.window.frame.size.height) {

sources/SessionView.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ - (void)setBackgroundDimmed:(BOOL)backgroundDimmed {
206206

207207
// It's very expensive for PTYTextView to own its own tracking events because its frame changes
208208
// constantly, plus it can miss mouse exit events and spurious mouse enter events (issue 3345).
209-
// I beleive it also caused hangs (issue 3974).
209+
// I believe it also caused hangs (issue 3974).
210210
- (void)updateTrackingAreas {
211211
if ([self window]) {
212212
int trackingOptions;

sources/TmuxController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,7 @@ - (void)setAffinitiesFromString:(NSString *)result {
12081208
if (siblings.count == 1) {
12091209
// This is a wee hack. If a tmux Window is in a native window with one tab
12101210
// then create an equivalence class containing only (wid, wid+"_ph"). ph=placeholder
1211-
// The equivalence class's existance signals not to apply the default mode for
1211+
// The equivalence class's existence signals not to apply the default mode for
12121212
// unrecognized windows.
12131213
exemplar = [exemplar stringByAppendingString:@"_ph"];
12141214
}

sources/ToolJobs.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ - (id)comboBox:(NSComboBox *)aComboBox objectValueForItemAtIndex:(NSInteger)inde
126126
}
127127
- (NSUInteger)comboBox:(NSComboBox *)aComboBox indexOfItemWithStringValue:(NSString *)aString {
128128
if ([aString intValue] > 0) {
129-
return NSNotFound; // Without this, "1", "2", and "3" get replaced immediatly!
129+
return NSNotFound; // Without this, "1", "2", and "3" get replaced immediately!
130130
}
131131

132132
int sig = [[self class] signalForName:aString];

sources/VT100CSIParser.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ static BOOL ParseCSIPrefix(iTermParserContext *context, CVector *incidentals, CS
118118
//
119119
// This description suggests that if the first byte of parameter bytes is one of
120120
// '<', '=', '>', '?' (\x3c-\x3f), it's well-formed and could be considered
121-
// as private CSI extention.
121+
// as private CSI extension.
122122
//
123123
// Example:
124124
//

sources/VT100Grid.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2002,7 +2002,7 @@ - (NSString *)description {
20022002
[self class], self, size_.width, size_.height, cursor_.x, cursor_.y];
20032003
}
20042004

2005-
// Returns NSString representation of line. This exists to faciliate debugging only.
2005+
// Returns NSString representation of line. This exists to facilitate debugging only.
20062006
+ (NSString *)stringForScreenChars:(screen_char_t *)theLine length:(int)length
20072007
{
20082008
NSMutableString* result = [NSMutableString stringWithCapacity:length];

sources/VT100GridTypes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ NS_INLINE long long VT100GridWindowedRangeLength(VT100GridWindowedRange range, i
268268
int numFullLines = MAX(0, (range.coordRange.end.y - range.coordRange.start.y - 1));
269269
return ((right - VT100GridWindowedRangeStart(range).x) + // Chars on first line
270270
(VT100GridWindowedRangeEnd(range).x - left) + // Chars on second line
271-
range.columnWindow.length * numFullLines); // Chars inbetween
271+
range.columnWindow.length * numFullLines); // Chars between
272272
}
273273
}
274274

sources/VT100Screen.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@ - (void)linefeed
10931093
// more cooperation between VT100Screen and PTYTextView than is currently in place because
10941094
// the selection could become truncated, and regardless, will need to move up a line in terms
10951095
// of absolute Y position (normally when the screen scrolls the absolute Y position of the
1096-
// selection stays the same and the viewport moves down, or else there is soem scrollback
1096+
// selection stays the same and the viewport moves down, or else there is some scrollback
10971097
// overflow and PTYTextView -refresh bumps the selection's Y position, but because in this
10981098
// case we don't append to the line buffer, scrollback overflow will not increment).
10991099
[delegate_ screenRemoveSelection];

sources/iTermFileDescriptorSocketPath.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const char *iTermFileDescriptorSocketNamePrefix = "iTerm2.socket.";
3737
//
3838
// Based on that, we don't want /var/folders. That site makes another point about home directories:
3939
// "There is a user cache in ~/Library/Caches and the only advantage I can see for '/var/folders'
40-
// is to have a cache that is not in the home folder, for example, to avoid transfering data over
40+
// is to have a cache that is not in the home folder, for example, to avoid transferring data over
4141
// a network when using network homes"
4242
//
4343
// Obviously, a unix domain socket on a network path sounds like a bad idea (does it even work?)

sources/iTermFindOnPageHelper.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ - (void)findString:(NSString *)aString
9595
// it results in drawing errors (drawing is clipped to the findbar for
9696
// some reason). So we return YES and continueFind is run from a timer
9797
// and everything works fine. The 100ms delay introduced is not
98-
// noticable.
98+
// noticeable.
9999
} else {
100100
// Begin a brand new search.
101101
if (_findInProgress) {

sources/iTermTabBarControlView.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
@end
1919

20-
// A customized verison of PSMTabBarControl.
20+
// A customized version of PSMTabBarControl.
2121
@interface iTermTabBarControlView : PSMTabBarControl
2222

2323
@property(nonatomic, assign) id<iTermTabBarControlViewDelegate> itermTabBarDelegate;

tests/encoding_change.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
C3+A5 in current encoding: å
2-
Latin-1: Capital A with tilde, Captial Y with double stroke: %@å
2+
Latin-1: Capital A with tilde, Capital Y with double stroke: %@å
33
UTF-8: Lowercase a with ring: %Gå

0 commit comments

Comments
 (0)