@property
    def is_cursor_at_the_end_of_line(self):
        return self.current_char in ('\n', '')
True when the cursor is at the end of this line.
dataset/ETHPy150Open jonathanslenders/python-prompt-toolkit/prompt_toolkit/document.py/Document.is_cursor_at_the_end_of_line