fix lingle line edit right arrow while in end of line

This commit is contained in:
Vadim Lopatin 2016-09-09 09:20:35 +03:00
parent 9498054caa
commit 9b40d4cd10
1 changed files with 1 additions and 1 deletions
src/dlangui/widgets

View File

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