fixed off by one error

#getTextRangeForLine wrongly removes the last character from the line
6.19.x
Sven Efftinge 2016-04-13 12:09:36 +02:00
parent bb95dc14ef
commit c64b43fa4a
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ public class OrionDocument extends AbstractEmbeddedDocument {
final int startOffset = this.textViewOverlay.getModel().getLineStart(line);
final int endOffset = this.textViewOverlay.getModel().getLineEnd(line);
final int length = endOffset - startOffset;
return new TextRange(new TextPosition(line, 0), new TextPosition(line, length - 1));
return new TextRange(new TextPosition(line, 0), new TextPosition(line, length));
}
@Override