Skip to content

Commit

Permalink
fixed getLineMaxColumn (#1610)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chillee authored and jpoon committed Apr 30, 2017
1 parent d1e10ad commit ba57918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/textEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export class TextEditor {
}

static getLineMaxColumn(lineNumber: number): number {
if (lineNumber < 1 || lineNumber > TextEditor.getLineCount()) {
if (lineNumber < 0 || lineNumber > TextEditor.getLineCount()) {
throw new Error('Illegal value ' + lineNumber + ' for `lineNumber`');
}

Expand Down

0 comments on commit ba57918

Please sign in to comment.