Skip to content

Commit

Permalink
Merge branch 'refs/heads/master' into page-up-page-down
Browse files Browse the repository at this point in the history
  • Loading branch information
tienshiao committed Feb 16, 2016
2 parents bfeb39c + aaa74b4 commit 7e4fc79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/motion/position.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ export class Position extends vscode.Position {
}
}

if (this.line === this.getDocumentEnd().line) {
return this.getLineEnd();
if (this.line === 0) {
return this.getLineBegin();
} else {
return new Position(this.line + 1, 0, this.positionOptions);
return new Position(this.line - 1, 0, this.positionOptions);
}
}

Expand Down

0 comments on commit 7e4fc79

Please sign in to comment.