(self)
Skip one word to the left (CTRL+LEFT).
Skip one word to the left (CTRL+LEFT).
Skip one word to the left ( CTRL + LEFT ) .
def skip_word_left(self):
        """Skip one word to the left (CTRL+LEFT)."""
        crow, ccol = self.current_row, self.current_col
        # find alphanumeric chars
        while True:
            ccol -= 1
            if ccol < 1:
                if crow <= self.scroll_area.top:
                    # not found
                    return
                crow -= 1
                ccol = self.mode.width
            c = self._apage.get_char(crow, ccol)
            if (c in ALPHANUMERIC):
                break
        # find non-alphanumeric chars
        while True:
            last_row, last_col = crow, ccol
            ccol -= 1
            if ccol < 1:
                if crow <= self.scroll_area.top:
                    break
                crow -= 1
                ccol = self.mode.width
            c = self._apage.get_char(crow, ccol)
            if (c not in ALPHANUMERIC):
                break
        self.set_pos(last_row, last_col)
def skip_word_left ( self ) : crow , ccol = self . current_row , self . current_col # find alphanumeric chars while True : ccol -= 1 if ccol < 1 : if crow <= self . scroll_area . top : # not found return crow -= 1 ccol = self . mode . width c = self . _apage . get_char ( crow , ccol ) if ( c in ALPHANUMERIC ) : break # find non-alphanumeric chars while True : last_row , last_col = crow , ccol ccol -= 1 if ccol < 1 : if crow <= self . scroll_area . top : break crow -= 1 ccol = self . mode . width c = self . _apage . get_char ( crow , ccol ) if ( c not in ALPHANUMERIC ) : break self . set_pos ( last_row , last_col )