doc.insertText(line, 0, 4, "\t");
assertTrue(LineDimensionsUtils.needsOffset(line));
}
public void testInsertionSimpleMultiline() {
Document doc = Document.createFromString("\t123");
LineDimensionsCalculator.createWithCustomProvider(new TestMeasurementProvider(0))
.handleDocumentChange(doc);
Line line = doc.getFirstLine();
assertFalse(LineDimensionsUtils.needsOffset(line));
doc.insertText(line, 0, 1, "qwe\n\t");
assertFalse(LineDimensionsUtils.needsOffset(line));
assertFalse(LineDimensionsUtils.needsOffset(line.getNextLine()));
}