#NEWLINE# @ property #NEWLINE# def current_line_before_cursor( self ) : #NEWLINE# #INDENT# ' Text from the start of the line until the cursor. ' #NEWLINE# ( _ , _ , text ) = self . text_before_cursor . rpartition ( '\n' ) #NEWLINE# return self