Skip to content

Commit

Permalink
Merge pull request #51235 from 1AmNegan/keybinding-next-change-fix
Browse files Browse the repository at this point in the history
Center viewport for nextChange/previousChange using keybinding
  • Loading branch information
joaomoreno committed Sep 13, 2018
2 parents 86230c2 + 3d7b13d commit bc4c7cc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ export class MoveToPreviousChangeAction extends EditorAction {

const position = new Position(change.modifiedStartLineNumber, 1);
outerEditor.setPosition(position);
outerEditor.revealPosition(position);
outerEditor.revealPositionInCenter(position);
}
}
registerEditorAction(MoveToPreviousChangeAction);
Expand Down Expand Up @@ -520,7 +520,7 @@ export class MoveToNextChangeAction extends EditorAction {

const position = new Position(change.modifiedStartLineNumber, 1);
outerEditor.setPosition(position);
outerEditor.revealPosition(position);
outerEditor.revealPositionInCenter(position);
}
}
registerEditorAction(MoveToNextChangeAction);
Expand Down

0 comments on commit bc4c7cc

Please sign in to comment.