fix toggle line comment

This commit is contained in:
Vadim Lopatin 2015-02-09 15:43:32 +03:00
parent 44728bdb61
commit 8293129a25
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}