code: def get_line_numbers(self, buffer):
          
          # Get absolute cursor positions from the text object.
          from_, to = self.operator_range(buffer.document)
          from_ += buffer.cursor_position
          to += buffer.cursor_position
  
          # Take the start of the lines.
          from_, _ = buffer.document.translate_index_to_position(from_)
          to, _ = buffer.document.translate_index_to_position(to)
  
          return from_, to
docs: Return a (start_line, end_line) pair.