mirror of https://github.com/buggins/dlangui.git
fix toggle line comment
This commit is contained in:
parent
44728bdb61
commit
8293129a25
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue