(self)
Decrease the current position by a char width.
Decrease the current position by a char width.
Decrease the current position by a char width .
def decr_pos(self):
        """Decrease the current position by a char width."""
        # check width of cell to the left
        width = self._apage.get_charwidth(self.current_row, self.current_col-1)
        # previous is trail byte: go two to the left
        # lead byte: go three to the left
        if width == 0:
            step = 2
        elif width == 2:
            step = 3
        else:
            step = 1
        self.set_pos(self.current_row, self.current_col - step, scroll_ok=False)
def decr_pos ( self ) : # check width of cell to the left width = self . _apage . get_charwidth ( self . current_row , self . current_col - 1 ) # previous is trail byte: go two to the left # lead byte: go three to the left if width == 0 : step = 2 elif width == 2 : step = 3 else : step = 1 self . set_pos ( self . current_row , self . current_col - step , scroll_ok = False )