@Override
  public int getLineStartOffset(int line) {
    if (line == 0) return 0; // otherwise, it would crash for the zero-length document
    return getLineSet().getLineStart(line);
  }
@Override
  public int getLineStartOffset(int line)