conform with upstream change

Ref:
1e5ae06ba4
This commit is contained in:
Kevin Ushey 2015-01-05 17:08:23 -08:00
commit a50833cfea

View file

@ -2118,11 +2118,9 @@ dom.importCssString(".normal-mode .ace_cursor{\
newHead = copyCursor(origHead);
}
if (vim.visualMode) {
if (!(vim.visualBlock && motion === "moveToEol")) {
if (!(vim.visualBlock && newHead.ch === Infinity)) {
newHead = clipCursorToContent(cm, newHead, vim.visualBlock);
}
if (newAnchor) {
newAnchor = clipCursorToContent(cm, newAnchor, true);
}