From 8293129a258c1b46549cef0605f79b52b70fc9ce Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Mon, 9 Feb 2015 15:43:32 +0300 Subject: [PATCH] fix toggle line comment --- src/dlangui/core/editable.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dlangui/core/editable.d b/src/dlangui/core/editable.d index 7147c9a5..e3c93634 100644 --- a/src/dlangui/core/editable.d +++ b/src/dlangui/core/editable.d @@ -751,7 +751,7 @@ class EditableContent { /// corrent range to cover full lines TextRange fullLinesRange(TextRange r) { r.start.pos = 0; - if (r.end.pos > 0) + if (r.end.pos > 0 || r.start.line == r.end.line) r.end = lineBegin(r.end.line + 1); return r; }