From fe10f38fb637b87e7a9bac0ccc1686890f287386 Mon Sep 17 00:00:00 2001 From: rebornix Date: Tue, 30 Aug 2016 15:39:36 -0700 Subject: [PATCH] fix #677 --- src/actions/actions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/actions/actions.ts b/src/actions/actions.ts index 85edbe7cc36..03827213562 100644 --- a/src/actions/actions.ts +++ b/src/actions/actions.ts @@ -1729,7 +1729,7 @@ class COmmandTopScroll extends BaseCommand { keys = ["z", "t"]; public async exec(position: Position, vimState: VimState): Promise { - await vscode.commands.executeCommand('revealLine', {lineNumber: 1, at: 'top'}); + await vscode.commands.executeCommand('revealLine', {lineNumber: position.line, at: 'top'}); return vimState; } } @@ -1740,7 +1740,7 @@ class CommandBottomScroll extends BaseCommand { keys = ["z", "b"]; public async exec(position: Position, vimState: VimState): Promise { - await vscode.commands.executeCommand('revealLine', {lineNumber: 10, at: 'bottom'}); + await vscode.commands.executeCommand('revealLine', {lineNumber: position.line, at: 'bottom'}); return vimState; } }