public TextRange withNewStartPosition(final Location from) {
        final int highlightLen = this.to.getColNo() - this.from.getColNo() + 1;
        return new TextRange(
                from,
                DefaultLocation.of(from.getLineNo(), from.getColNo() + highlightLen - 1));
    }
Move a highlight on the same line
stroom-util-shared/src/main/java/stroom/util/shared/TextRange.java