int newI = softWrap.getStart();
if (newI < i) {
revertListeners(newI, context.visualLine);
for (int j = i - 1; j >= newI; j--) {
int pixelsDiff = offset2widthInPixels.get(j);
<BUG>int columnsDiff = calculateWidthInColumns(pixelsDiff, fontType2spaceWidth.get(offset2fontType.get(j)));
</BUG>
context.offset--;
context.logicalColumn -= columnsDiff;
context.visualColumn -= columnsDiff;

int newI = softWrap.getStart();
if (newI < i) {
revertListeners(newI, context.visualLine);
for (int j = i - 1; j >= newI; j--) {
int pixelsDiff = offset2widthInPixels.get(j);
int columnsDiff = calculateWidthInColumns(text.charAt(j), pixelsDiff, fontType2spaceWidth.get(offset2fontType.get(j)));
context.offset--;
context.logicalColumn -= columnsDiff;
context.visualColumn -= columnsDiff;
