From 782d7e567dcb2a3fe2f5ad51cbdcff489a27d03f Mon Sep 17 00:00:00 2001 From: Daniel Egger Date: Wed, 11 Oct 2017 22:04:43 +0200 Subject: [PATCH] removed code which is not needed anymore due to #2062 --- src/actions/commands/actions.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/actions/commands/actions.ts b/src/actions/commands/actions.ts index d252ed45058..0fc72433ce1 100644 --- a/src/actions/commands/actions.ts +++ b/src/actions/commands/actions.ts @@ -887,15 +887,7 @@ class CommandOverrideCopy extends BaseCommand { .map(range => { const start = Position.EarlierOf(range.start, range.stop); const stop = Position.LaterOf(range.start, range.stop); - - // Insert selecting from the left to the right is a special case that - // selects one more on the right. - // The order of the if statements is to check for the case where start=stop - if (vimState.currentMode !== ModeName.Insert || start.isEqual(range.stop)) { - return vimState.editor.document.getText(new vscode.Range(start, stop.getRight())); - } else { - return vimState.editor.document.getText(new vscode.Range(start, stop)); - } + return vimState.editor.document.getText(new vscode.Range(start, stop.getRight())); }) .join('\n'); } else if (vimState.currentMode === ModeName.VisualLine) {