From e9ecc3b26c81211848707d806285360c9382d50d Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Thu, 24 Apr 2014 20:02:21 +0400 Subject: [PATCH] editor fixes --- 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 2ed57804..790f9c97 100644 --- a/src/dlangui/widgets/editors.d +++ b/src/dlangui/widgets/editors.d @@ -571,7 +571,7 @@ class EditableContent { // forward if (p.pos >= linelen) { // last position of line - if (p.line < length) + if (p.line < length - 1) p = firstNonSpace(p.line + 1); } else if (p.pos >= lastns.pos) { // before first nonspace // to beginning of line