提交 3f2fb173 编写于 作者: P Pat Thoyts

git-gui: sort the numeric ansi codes

This ensures that underline does not conflict with inverse colors.
Signed-off-by: NPat Thoyts <patthoyts@users.sourceforge.net>
上级 9af6413b
......@@ -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"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册