@property
    def current_line_before_cursor(self):
        _, _, text = self.text_before_cursor.rpartition('\n')
        return text
Text from the start of the line until the cursor.
dataset/ETHPy150Open jonathanslenders/python-prompt-toolkit/prompt_toolkit/document.py/Document.current_line_before_cursor