def insert(self, pos, length):

        i = 0
        for run in self.runs:
            if i <= pos <= i + run.count:
                run.count += length
            i += run.count
Insert characters into the run list.
dataset/ETHPy150Open ardekantur/pyglet/pyglet/text/runlist.py/RunList.insert