Skip to content

Commit

Permalink
Address PR feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnfn committed Feb 23, 2016
1 parent f96f38d commit fb11a1e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/motion/motion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,8 @@ export class Motion implements vscode.Disposable {
let selection = e.selections[0];

if (selection) {
const whosFirst = selection.anchor.compareTo(selection.active);

let line = whosFirst > 0 ? selection.active.line : selection.anchor.line;
let char = whosFirst > 0 ? selection.active.character : selection.anchor.character;
let line = selection.active.line;
let char = selection.active.character;

if (this.position.line !== line ||
this.position.character !== char) {
Expand Down

0 comments on commit fb11a1e

Please sign in to comment.