git-gui: fix ANSI-color parsing
commit46a0431b996cd19f21e0247c97b1eab2c19698fc
authorBert Wesarg <bert.wesarg@googlemail.com>
Mon, 15 Nov 2010 10:00:33 +0000 (15 11:00 +0100)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Fri, 19 Nov 2010 09:32:58 +0000 (19 09:32 +0000)
tree243f99d278f30fbbf4d25a9a3d906f754b138ae4
parent8f85599aba6b569de5c559994704a416f52bc031
git-gui: fix ANSI-color parsing

git diff always outputs color reset commands, even when the color for the
current part is disabled (ie. normal). But the current ANSI-color parsing code
assumes that color start and reset commands appear in matching pairs.

Relax this assumption.

Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
lib/diff.tcl