From 9b40d4cd10e64466e566f6ae398bf0c095eadec8 Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Fri, 9 Sep 2016 09:20:35 +0300 Subject: [PATCH] fix lingle line edit right arrow while in end of line --- src/dlangui/widgets/editors.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dlangui/widgets/editors.d b/src/dlangui/widgets/editors.d index df05e82e..f40c6bf9 100644 --- a/src/dlangui/widgets/editors.d +++ b/src/dlangui/widgets/editors.d @@ -1268,7 +1268,7 @@ class EditWidgetBase : ScrollWidgetBase, EditableContentListener, MenuItemAction _caretPos.pos++; updateSelectionAfterCursorMovement(oldCaretPos, (a.id & 1) != 0); ensureCaretVisible(); - } else if (_caretPos.line < _content.length) { + } else if (_caretPos.line < _content.length && _content.multiline) { _caretPos.pos = 0; _caretPos.line++; updateSelectionAfterCursorMovement(oldCaretPos, (a.id & 1) != 0);