Skip to content

Commit

Permalink
Merge pull request #1604 from Chillee/1594
Browse files Browse the repository at this point in the history
Fixes #1594
  • Loading branch information
johnfn authored Apr 29, 2017
2 parents 72a33c8 + 3abb17e commit 8e347eb
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 @@ -1647,8 +1647,8 @@ class CommandOverrideCopy extends BaseCommand {
} else if (vimState.currentMode === ModeName.VisualLine) {
text = vimState.allCursors.map(range => {
return vimState.editor.document.getText(new vscode.Range(
range.start.getLineBegin(),
range.stop.getLineEnd()
Position.EarlierOf(range.start.getLineBegin(), range.stop.getLineBegin()),
Position.LaterOf(range.start.getLineEnd(), range.stop.getLineEnd())
));
}).join("\n");
} else if (vimState.currentMode === ModeName.VisualBlock) {
Expand Down

0 comments on commit 8e347eb

Please sign in to comment.