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
Return a (start_line, end_line) pair.
dataset/ETHPy150Open jonathanslenders/python-prompt-toolkit/prompt_toolkit/key_binding/bindings/vi.py/TextObject.get_line_numbers