Skip to content

Commit

Permalink
fix #677
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornix committed Sep 14, 2016
1 parent d1e6dd5 commit fe10f38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/actions/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1729,7 +1729,7 @@ class COmmandTopScroll extends BaseCommand {
keys = ["z", "t"];

public async exec(position: Position, vimState: VimState): Promise<VimState> {
await vscode.commands.executeCommand('revealLine', {lineNumber: 1, at: 'top'});
await vscode.commands.executeCommand('revealLine', {lineNumber: position.line, at: 'top'});
return vimState;
}
}
Expand All @@ -1740,7 +1740,7 @@ class CommandBottomScroll extends BaseCommand {
keys = ["z", "b"];

public async exec(position: Position, vimState: VimState): Promise<VimState> {
await vscode.commands.executeCommand('revealLine', {lineNumber: 10, at: 'bottom'});
await vscode.commands.executeCommand('revealLine', {lineNumber: position.line, at: 'bottom'});
return vimState;
}
}
Expand Down

0 comments on commit fe10f38

Please sign in to comment.