Skip to content

Commit

Permalink
Actually fixed everything but visual block mode (I think)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chillee committed Jun 24, 2017
1 parent b6201ac commit 9a00ff4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/mode/modeHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1477,7 +1477,11 @@ export class ModeHandler implements vscode.Disposable {
}
}

const selections = this._vimState.editor.selections;
const selections = this._vimState.editor.selections.map(x => {
let y = Range.FromVSCodeSelection(x);
y = y.start.isEarlierThan(y.stop) ? y.withNewStop(y.stop.getLeftThroughLineBreaks(true)) : y;
return new vscode.Range(new vscode.Position(y.start.line, y.start.character), new vscode.Position(y.stop.line, y.stop.character));
});
const firstTransformation = transformations[0];
const manuallySetCursorPositions = ((firstTransformation.type === "deleteRange" ||
firstTransformation.type === "replaceText" || firstTransformation.type === "insertText")
Expand Down

0 comments on commit 9a00ff4

Please sign in to comment.