Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Feram authored and ad-si committed Jun 14, 2016
1 parent dc5d8a2 commit 76fa6d3
Show file tree
Hide file tree
Showing 30 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion ColorPicker/ColorPicker/CPKKDTree.h
Expand Up @@ -35,7 +35,7 @@
*
* @param key An array of NSNumber objects with as many elements as the tree has dimensions.
*
* @return The object assoicated with the point closest to |key| by Euclidean distance.
* @return The object associated with the point closest to |key| by Euclidean distance.
*/
- (id)nearestNeighborTo:(NSArray *)key;

Expand Down
2 changes: 1 addition & 1 deletion ThirdParty/CGSInternal/CGSWindow.h
Expand Up @@ -186,7 +186,7 @@ CG_EXTERN CGError CGSWindowSetCanAccelerate(CGSConnectionID cid, CGSWindowID wid


#pragma mark system status items
/*! 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. */
/*! 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. */
CG_EXTERN CGError CGSRegisterWindowWithSystemStatusBar(CGSConnectionID cid, CGSWindowID wid, int priority);
CG_EXTERN CGError CGSUnregisterWindowWithSystemStatusBar(CGSConnectionID cid, CGSWindowID wid);

Expand Down
4 changes: 2 additions & 2 deletions ThirdParty/SCEvents/Source/SCEvents.m
Expand Up @@ -98,7 +98,7 @@ - (id)init
* Flushes the event stream synchronously by sending events that have already
* occurred but not yet delivered.
*
* @return A BOOL indicating the sucess or failure
* @return A BOOL indicating the success or failure
*/
- (BOOL)flushEventStreamSync
{
Expand All @@ -121,7 +121,7 @@ - (BOOL)flushEventStreamSync
* Flushes the event stream asynchronously by sending events that have already
* occurred but not yet delivered.
*
* @return A BOOL indicating the sucess or failure
* @return A BOOL indicating the success or failure
*/
- (BOOL)flushEventStreamAsync
{
Expand Down
2 changes: 1 addition & 1 deletion iTerm2XCTests/VT100ScreenTest.m
Expand Up @@ -122,7 +122,7 @@ - (void)testInit {
XCTAssert([s length] == 0);
}

// Append some stuff to it to make sure we can retreive it.
// Append some stuff to it to make sure we can retrieve it.
for (int i = 0; i < [screen height] - 1; i++) {
[screen terminalAppendString:[NSString stringWithFormat:@"Line %d", i]];
[screen terminalLineFeed];
Expand Down
2 changes: 1 addition & 1 deletion plists/PresetKeyMappings.plist
Expand Up @@ -631,7 +631,7 @@
<string>[1;6C</string>
</dict>
</dict>
<key>Terminal.app Compatiblity</key>
<key>Terminal.app Compatibility</key>
<dict>
<key>0x2d-0x40000</key>
<dict>
Expand Down
2 changes: 1 addition & 1 deletion sources/AppleScriptTest.m
Expand Up @@ -171,7 +171,7 @@ - (void)testCreateWindowWithDefaultProfileAndCommand {
}

- (void)testSelectWindow {
// Beccause windows are ordered by their z-position, the first window is
// Because windows are ordered by their z-position, the first window is
// the most recently created one. In the past, there was a "terminal
// windows" property that was ordered by creation time.
NSArray *commands = @[ @"create window with default profile",
Expand Down
2 changes: 1 addition & 1 deletion sources/Autocomplete.m
Expand Up @@ -32,7 +32,7 @@ @implementation AutocompleteView
// Words before the word at the cursor.
NSMutableArray* context_;

// x,y coords where prefix occured.
// x,y coords where prefix occurred.
int startX_;
long long startY_; // absolute coord

Expand Down
4 changes: 2 additions & 2 deletions sources/LineBlock.m
Expand Up @@ -747,8 +747,8 @@ - (int) _lineRawOffset: (int) anIndex
// Convert $ in a context where it refers to the end of string to kSuffixChar
// ^ is NOT start-of-string when:
// - it is escaped
// - it is preceeded by an unescaped [
// - it is preceeded by an unescaped [:
// - it is preceded by an unescaped [
// - it is preceded by an unescaped [:
// $ is NOT end-of-string when:
// - it is escaped
//
Expand Down
4 changes: 2 additions & 2 deletions sources/LineBuffer.m
Expand Up @@ -454,7 +454,7 @@ - (int)copyLineToBuffer:(screen_char_t *)buffer
}
}
NSLog(@"Couldn't find line %d", lineNum);
NSAssert(NO, @"Tried to get non-existant line");
NSAssert(NO, @"Tried to get non-existent line");
return NO;
}

Expand Down Expand Up @@ -507,7 +507,7 @@ - (ScreenCharArray *)wrappedLineAtIndex:(int)lineNum
}
}
NSLog(@"Couldn't find line %d", lineNum);
NSAssert(NO, @"Tried to get non-existant line");
NSAssert(NO, @"Tried to get non-existent line");
return nil;
}

Expand Down
2 changes: 1 addition & 1 deletion sources/MovePaneController.m
Expand Up @@ -171,7 +171,7 @@ - (BOOL)dropInSession:(PTYSession *)dest
didSplit_ = YES;

if ([self.session isTmuxClient]) {
// Do this after setting didSplit becasue a second call to this method
// Do this after setting didSplit because a second call to this method
// will happen no matter what and we want it to do nothing if we get
// here.
if (isMove_) {
Expand Down
2 changes: 1 addition & 1 deletion sources/NSStringITerm.h
Expand Up @@ -2,7 +2,7 @@
//
// NSStringJTerminal.h
//
// Additional fucntion to NSString Class by Category
// Additional function to NSString Class by Category
// 2001.11.13 by Y.Hanahara
// 2002.05.18 by Kiichi Kusama
/*
Expand Down
2 changes: 1 addition & 1 deletion sources/NSStringITerm.m
Expand Up @@ -335,7 +335,7 @@ static int maximal_subpart_of_row(const unsigned char *datap,
return bytesInRow;
}

// This function finds the longest intial sequence of bytes that look like a valid UTF-8 sequence.
// This function finds the longest initial sequence of bytes that look like a valid UTF-8 sequence.
// It's used to gobble them up and replace them with a <?> replacement mark in an invalid sequence.
static int minimal_subpart(const unsigned char *datap, int datalen)
{
Expand Down
2 changes: 1 addition & 1 deletion sources/PTYTab.m
Expand Up @@ -2236,7 +2236,7 @@ + (__kindof NSView *)_recusiveRestoreSplitters:(NSDictionary<NSString *, id> *)a
NSString *uniqueId = [PTYSession guidInArrangement:arrangement[TAB_ARRANGEMENT_SESSION]];
if (windowPaneNumber && idMap[windowPaneNumber]) {
// Creating splitters for a tmux tab. The arrangement is marked
// up with window pane IDs, whcih may or may not already exist.
// up with window pane IDs, which may or may not already exist.
// When restoring a tmux tab, then all session dicts in the
// arrangement have a window pane. The presence of a
// TAB_ARRANGEMENT_TMUX_WINDOW_PANE implies that theMap is
Expand Down
2 changes: 1 addition & 1 deletion sources/PTYTask.h
Expand Up @@ -91,7 +91,7 @@ extern NSString *kCoprocessStatusChangeNotification;
- (BOOL)tryToAttachToServerWithProcessId:(pid_t)thePid;

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

Expand Down
2 changes: 1 addition & 1 deletion sources/PTYTask.m
Expand Up @@ -1024,7 +1024,7 @@ - (NSString*)getWorkingDirectory {
}
}
if (ret <= 0) {
// An error occured
// An error occurred
DLog(@"Failed with error %d", ret);
return nil;
} else if (ret != sizeof(vpi)) {
Expand Down
2 changes: 1 addition & 1 deletion sources/PTYTextView.m
Expand Up @@ -1067,7 +1067,7 @@ - (BOOL)cursorVisible {
- (void)drawRect:(NSRect)rect {
BOOL savedCursorVisible = _drawingHelper.cursorVisible;

// Try to use a saved grid if one is available. If it suceeds, that implies that the cursor was
// Try to use a saved grid if one is available. If it succeeds, that implies that the cursor was
// recently hidden and what we're drawing is how the screen looked just before the cursor was
// hidden. Therefore, we'll temporarily show the cursor, but we'll need to restore cursorVisible's
// value when we're done.
Expand Down
2 changes: 1 addition & 1 deletion sources/PasteViewController.m
Expand Up @@ -30,7 +30,7 @@ - (instancetype)initWithContext:(PasteContext *)pasteContext
if (self) {
[self view];

// Fix up frames beacuse the view is flipped.
// Fix up frames because the view is flipped.
for (NSView *view in [self.view subviews]) {
NSRect frame = [view frame];
frame.origin.y = NSMaxY([self.view bounds]) - NSMaxY([view frame]);
Expand Down
2 changes: 1 addition & 1 deletion sources/PseudoTerminal.h
Expand Up @@ -105,7 +105,7 @@ extern NSString *const kPseudoTerminalStateRestorationWindowArrangementKey;
savedWindowType:(iTermWindowType)savedWindowType
screen:(int)screenIndex;

// isHotkey indicates if this is a hotkey window, which recieves special
// isHotkey indicates if this is a hotkey window, which receives special
// treatment and must be unique.
- (instancetype)initWithSmartLayout:(BOOL)smartLayout
windowType:(iTermWindowType)windowType
Expand Down
2 changes: 1 addition & 1 deletion sources/PseudoTerminal.m
Expand Up @@ -2845,7 +2845,7 @@ - (NSSize)windowWillResize:(NSWindow *)sender toSize:(NSSize)proposedFrameSize {
snapWidth = snapHeight = NO;
}

// If resizing a full-width/height X-of-screen window in a direction perpindicular to the screen
// If resizing a full-width/height X-of-screen window in a direction perpendicular to the screen
// edge it's attached to, turn off snapping in the direction parallel to the edge.
if (windowType_ == WINDOW_TYPE_RIGHT || windowType_ == WINDOW_TYPE_LEFT) {
if (proposedFrameSize.height == self.window.frame.size.height) {
Expand Down
2 changes: 1 addition & 1 deletion sources/SessionView.m
Expand Up @@ -206,7 +206,7 @@ - (void)setBackgroundDimmed:(BOOL)backgroundDimmed {

// It's very expensive for PTYTextView to own its own tracking events because its frame changes
// constantly, plus it can miss mouse exit events and spurious mouse enter events (issue 3345).
// I beleive it also caused hangs (issue 3974).
// I believe it also caused hangs (issue 3974).
- (void)updateTrackingAreas {
if ([self window]) {
int trackingOptions;
Expand Down
2 changes: 1 addition & 1 deletion sources/TmuxController.m
Expand Up @@ -1208,7 +1208,7 @@ - (void)setAffinitiesFromString:(NSString *)result {
if (siblings.count == 1) {
// This is a wee hack. If a tmux Window is in a native window with one tab
// then create an equivalence class containing only (wid, wid+"_ph"). ph=placeholder
// The equivalence class's existance signals not to apply the default mode for
// The equivalence class's existence signals not to apply the default mode for
// unrecognized windows.
exemplar = [exemplar stringByAppendingString:@"_ph"];
}
Expand Down
2 changes: 1 addition & 1 deletion sources/ToolJobs.m
Expand Up @@ -126,7 +126,7 @@ - (id)comboBox:(NSComboBox *)aComboBox objectValueForItemAtIndex:(NSInteger)inde
}
- (NSUInteger)comboBox:(NSComboBox *)aComboBox indexOfItemWithStringValue:(NSString *)aString {
if ([aString intValue] > 0) {
return NSNotFound; // Without this, "1", "2", and "3" get replaced immediatly!
return NSNotFound; // Without this, "1", "2", and "3" get replaced immediately!
}

int sig = [[self class] signalForName:aString];
Expand Down
2 changes: 1 addition & 1 deletion sources/VT100CSIParser.m
Expand Up @@ -118,7 +118,7 @@ static BOOL ParseCSIPrefix(iTermParserContext *context, CVector *incidentals, CS
//
// This description suggests that if the first byte of parameter bytes is one of
// '<', '=', '>', '?' (\x3c-\x3f), it's well-formed and could be considered
// as private CSI extention.
// as private CSI extension.
//
// Example:
//
Expand Down
2 changes: 1 addition & 1 deletion sources/VT100Grid.m
Expand Up @@ -2002,7 +2002,7 @@ - (NSString *)description {
[self class], self, size_.width, size_.height, cursor_.x, cursor_.y];
}

// Returns NSString representation of line. This exists to faciliate debugging only.
// Returns NSString representation of line. This exists to facilitate debugging only.
+ (NSString *)stringForScreenChars:(screen_char_t *)theLine length:(int)length
{
NSMutableString* result = [NSMutableString stringWithCapacity:length];
Expand Down
2 changes: 1 addition & 1 deletion sources/VT100GridTypes.h
Expand Up @@ -268,7 +268,7 @@ NS_INLINE long long VT100GridWindowedRangeLength(VT100GridWindowedRange range, i
int numFullLines = MAX(0, (range.coordRange.end.y - range.coordRange.start.y - 1));
return ((right - VT100GridWindowedRangeStart(range).x) + // Chars on first line
(VT100GridWindowedRangeEnd(range).x - left) + // Chars on second line
range.columnWindow.length * numFullLines); // Chars inbetween
range.columnWindow.length * numFullLines); // Chars between
}
}

Expand Down
2 changes: 1 addition & 1 deletion sources/VT100Screen.m
Expand Up @@ -1093,7 +1093,7 @@ - (void)linefeed
// more cooperation between VT100Screen and PTYTextView than is currently in place because
// the selection could become truncated, and regardless, will need to move up a line in terms
// of absolute Y position (normally when the screen scrolls the absolute Y position of the
// selection stays the same and the viewport moves down, or else there is soem scrollback
// selection stays the same and the viewport moves down, or else there is some scrollback
// overflow and PTYTextView -refresh bumps the selection's Y position, but because in this
// case we don't append to the line buffer, scrollback overflow will not increment).
[delegate_ screenRemoveSelection];
Expand Down
2 changes: 1 addition & 1 deletion sources/iTermFileDescriptorSocketPath.c
Expand Up @@ -37,7 +37,7 @@ const char *iTermFileDescriptorSocketNamePrefix = "iTerm2.socket.";
//
// Based on that, we don't want /var/folders. That site makes another point about home directories:
// "There is a user cache in ~/Library/Caches and the only advantage I can see for '/var/folders'
// is to have a cache that is not in the home folder, for example, to avoid transfering data over
// is to have a cache that is not in the home folder, for example, to avoid transferring data over
// a network when using network homes"
//
// Obviously, a unix domain socket on a network path sounds like a bad idea (does it even work?)
Expand Down
2 changes: 1 addition & 1 deletion sources/iTermFindOnPageHelper.m
Expand Up @@ -95,7 +95,7 @@ - (void)findString:(NSString *)aString
// it results in drawing errors (drawing is clipped to the findbar for
// some reason). So we return YES and continueFind is run from a timer
// and everything works fine. The 100ms delay introduced is not
// noticable.
// noticeable.
} else {
// Begin a brand new search.
if (_findInProgress) {
Expand Down
2 changes: 1 addition & 1 deletion sources/iTermTabBarControlView.h
Expand Up @@ -17,7 +17,7 @@

@end

// A customized verison of PSMTabBarControl.
// A customized version of PSMTabBarControl.
@interface iTermTabBarControlView : PSMTabBarControl

@property(nonatomic, assign) id<iTermTabBarControlViewDelegate> itermTabBarDelegate;
Expand Down
2 changes: 1 addition & 1 deletion tests/encoding_change.txt
@@ -1,3 +1,3 @@
C3+A5 in current encoding: å
Latin-1: Capital A with tilde, Captial Y with double stroke: %@å
Latin-1: Capital A with tilde, Capital Y with double stroke: %@å
UTF-8: Lowercase a with ring: %Gå

0 comments on commit 76fa6d3

Please sign in to comment.