git-gui: sort the numeric ansi codes
This ensures that underline does not conflict with inverse colors. Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Pat Thoyts committed
Nov 19, 2010 at 22:22 UTC
3f2fb173ace1afa7040d31cd3239c6a9cac49006
1 file changed
+1
-1
lib/diff.tcl
+1
-1
@@ -502,7 +502,7 @@ proc read_diff {fd conflict_size cont_info} {
502
503
foreach {posbegin colbegin posend colend} $markup {
504
set prefix clr
505
- foreach style [split $colbegin ";"] {
505
+ foreach style [lsort -integer [split $colbegin ";"]] {
506
if {$style eq "7"} {append prefix i; continue}
507
if {$style != 4 && ($style < 30 || $style > 47)} {continue}
508
set a "$mark linestart + $posbegin chars"