Skip to content

Commit

Permalink
Merge pull request #2036 from Tyriar/protect_markers
Browse files Browse the repository at this point in the history
Make Terminal.markers readonly
  • Loading branch information
Tyriar committed May 2, 2019
2 parents 267357c + 7d3e2d7 commit ebc0083
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/public/Terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class Terminal implements ITerminalApi {
public get textarea(): HTMLTextAreaElement { return this._core.textarea; }
public get rows(): number { return this._core.rows; }
public get cols(): number { return this._core.cols; }
public get markers(): IMarker[] { return this._core.markers; }
public get markers(): ReadonlyArray<IMarker> { return this._core.markers; }
public blur(): void {
this._core.blur();
}
Expand Down
2 changes: 1 addition & 1 deletion typings/xterm.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ declare module 'xterm' {
* (EXPERIMENTAL) Get all markers registered against the buffer. If the alt
* buffer is active this will always return [].
*/
readonly markers: IMarker[];
readonly markers: ReadonlyArray<IMarker>;

/**
* Natural language strings that can be localized.
Expand Down

0 comments on commit ebc0083

Please sign in to comment.