if tag in ('replace', 'insert'):
                    for line in tolines[j1:j2]:
                        yield '+' + line