diffr icon indicating copy to clipboard operation
diffr copied to clipboard

Inserted code line messes up the downwards coloring

Open sskras opened this issue 3 years ago • 0 comments

If I write this Python code:

    print()
    subprocess.call(['timew', 'untag', '@1'] + old_tags + [':yes'])
    subprocess.call(['timew', 'tag', '@1'] + new_tags + [':yes'])

... and then extend it by inserting a new line and modifying the last two lines the following way:

    ids = subprocess.check_output(['timew', 'get', 'dom.tracked.ids'])
    print()
    subprocess.call(['timew', 'untag'] + ids + old_tags + [':yes'])
    subprocess.call(['timew', 'tag'] + ids + new_tags + [':yes'])

Then I get some strange output: image

The second subprocess.call() line is colored correctly. But the first subprocess.call() line seems to get excessive coloring.

The latter gets a bit reduced if I reduce arguments in the new inserted line, eg: image

Now if I reduce it even more, colors seem to start working more or less properly: image

sskras avatar Mar 29 '22 11:03 sskras