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>
maint
Pat Thoyts 2010-11-19 22:22:20 +00:00
parent 9af6413b96
commit 3f2fb173ac
1 changed files with 1 additions and 1 deletions

View File

@ -502,7 +502,7 @@ proc read_diff {fd conflict_size cont_info} {

foreach {posbegin colbegin posend colend} $markup {
set prefix clr
foreach style [split $colbegin ";"] {
foreach style [lsort -integer [split $colbegin ";"]] {
if {$style eq "7"} {append prefix i; continue}
if {$style != 4 && ($style < 30 || $style > 47)} {continue}
set a "$mark linestart + $posbegin chars"