(self, prompt_row, furthest_left)
Delete the char to the left (BACKSPACE).
Delete the char to the left (BACKSPACE).
Delete the char to the left ( BACKSPACE ) .
def backspace(self, prompt_row, furthest_left):
        """Delete the char to the left (BACKSPACE)."""
        row, col = self.current_row, self.current_col
        start_row = self.find_start_of_line(row)
        # don't backspace through prompt or through start of logical line
        # on the prompt row, don't go any further back than we've been already
        if (
                ((col != furthest_left or row != prompt_row)
                and (col > 1 or row > start_row))
            ):
            self.decr_pos()
        self.delete_fullchar()
def backspace ( self , prompt_row , furthest_left ) : row , col = self . current_row , self . current_col start_row = self . find_start_of_line ( row ) # don't backspace through prompt or through start of logical line # on the prompt row, don't go any further back than we've been already if ( ( ( col != furthest_left or row != prompt_row ) and ( col > 1 or row > start_row ) ) ) : self . decr_pos ( ) self . delete_fullchar ( )