Merge pull request #565 from triplejam/rangeviofix2

Fix for #534 - Simpler way
This commit is contained in:
Vadim Lopatin 2018-04-23 09:20:11 +03:00 committed by GitHub
commit 4132b1d152
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1686,7 +1686,7 @@ class EditWidgetBase : ScrollWidgetBase, EditableContentListener, MenuItemAction
_caretPos.pos++;
updateSelectionAfterCursorMovement(oldCaretPos, (a.id & 1) != 0);
ensureCaretVisible();
} else if (_caretPos.line < _content.length && _content.multiline) {
} else if (_caretPos.line < _content.length - 1 && _content.multiline) {
_caretPos.pos = 0;
_caretPos.line++;
updateSelectionAfterCursorMovement(oldCaretPos, (a.id & 1) != 0);