onSameLine method

bool onSameLine(
  1. int offset1,
  2. int offset2
)

Return whether both offset1 and offset2 are on the same line.

Implementation

bool onSameLine(int offset1, int offset2) {
  return lineNumberDifference(offset1, offset2) == 0;
}