def get_position(self, row, col):
        """Get char position in all the text from row and column."""
        result = col
        self.log.debug('%s %s', row, col)
        lines = self.editor.getlines()[:row - 1]
        result += sum([len(l) + 1 for l in lines])
        self.log.debug(result)
        return result
def get_position ( self , row , col ) : result = col self . log . debug ( '%s %s' , row , col ) lines = self . editor . getlines ( ) [ : row - 1 ] result += sum ( [ len ( l ) + 1 for l in lines ] ) self . log . debug ( result ) return result
Get char position in all the text from row and column.