code: 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
docs: Get char position in all the text from row and column.