Merge pull request #2300 from kevinushey/patch/vim-visual-block-move-to-eol

Conform with upstream change for Vim Visual Block + move to EOL behaviour
This commit is contained in:
Harutyun Amirjanyan 2015-01-07 22:49:58 +04:00
commit 37ab8daabe

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);
}