Skip to content

Commit

Permalink
Merge pull request #2521 from alberto/patch-1
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
Tyriar authored Oct 28, 2019
2 parents 719fa55 + cb1cf3c commit 5b555ba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions addons/xterm-addon-search/typings/xterm-addon-search.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ declare module 'xterm-addon-search' {

/**
* Whether to search for a whole word, the result is only valid if it's
* suppounded in "non-word" characters such as `_`, `(`, `)` or space.
* surrounded in "non-word" characters such as `_`, `(`, `)` or space.
*/
wholeWord?: boolean;

Expand All @@ -27,7 +27,7 @@ declare module 'xterm-addon-search' {
caseSensitive?: boolean;

/**
* Whether to do an indcremental search, this will expand the selection if it
* Whether to do an incremental search, this will expand the selection if it
* still matches the term the user typed. Note that this only affects
* `findNext`, not `findPrevious`.
*/
Expand Down
16 changes: 8 additions & 8 deletions typings/xterm.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ declare module 'xterm' {

/**
* When enabled the cursor will be set to the beginning of the next line
* with every new line. This equivalent to sending '\r\n' for each '\n'.
* with every new line. This is equivalent to sending '\r\n' for each '\n'.
* Normally the termios settings of the underlying PTY deals with the
* translation of '\n' to '\r\n' and this setting should not be used. If you
* deal with data from a non-PTY related source, this settings might be
Expand Down Expand Up @@ -437,7 +437,7 @@ declare module 'xterm' {
onData: IEvent<string>;

/**
* Adds an event listener for a key is pressed. The event value contains the
* Adds an event listener for when a key is pressed. The event value contains the
* string that will be sent in the data event as well as the DOM event that
* triggered it.
* @returns an `IDisposable` to stop listening.
Expand Down Expand Up @@ -609,7 +609,7 @@ declare module 'xterm' {

/**
* Selects text within the terminal.
* @param column The column the selection starts at..
* @param column The column the selection starts at.
* @param row The row the selection starts at.
* @param length The length of the selection.
*/
Expand Down Expand Up @@ -918,7 +918,7 @@ declare module 'xterm' {

/**
* The line within the buffer where the top of the bottom page is (when
* fully scrolled down);
* fully scrolled down).
*/
readonly baseY: number;

Expand Down Expand Up @@ -1047,7 +1047,7 @@ declare module 'xterm' {
* array will contain subarrays with their numercial values.
* Return true if the sequence was handled; false if we should try
* a previous handler (set by addCsiHandler or setCsiHandler).
* The most recently-added handler is tried first.
* The most recently added handler is tried first.
* @return An IDisposable you can call to remove this handler.
*/
addCsiHandler(id: IFunctionIdentifier, callback: (params: (number | number[])[]) => boolean): IDisposable;
Expand All @@ -1066,7 +1066,7 @@ declare module 'xterm' {
* The function gets the payload and numerical parameters as arguments.
* Return true if the sequence was handled; false if we should try
* a previous handler (set by addDcsHandler or setDcsHandler).
* The most recently-added handler is tried first.
* The most recently added handler is tried first.
* @return An IDisposable you can call to remove this handler.
*/
addDcsHandler(id: IFunctionIdentifier, callback: (data: string, param: (number | number[])[]) => boolean): IDisposable;
Expand All @@ -1079,7 +1079,7 @@ declare module 'xterm' {
* @param callback The function to handle the sequence.
* Return true if the sequence was handled; false if we should try
* a previous handler (set by addEscHandler or setEscHandler).
* The most recently-added handler is tried first.
* The most recently added handler is tried first.
* @return An IDisposable you can call to remove this handler.
*/
addEscHandler(id: IFunctionIdentifier, handler: () => boolean): IDisposable;
Expand All @@ -1097,7 +1097,7 @@ declare module 'xterm' {
* The callback is called with OSC data string.
* Return true if the sequence was handled; false if we should try
* a previous handler (set by addOscHandler or setOscHandler).
* The most recently-added handler is tried first.
* The most recently added handler is tried first.
* @return An IDisposable you can call to remove this handler.
*/
addOscHandler(ident: number, callback: (data: string) => boolean): IDisposable;
Expand Down

0 comments on commit 5b555ba

Please sign in to comment.