@@ -490,24 +490,36 @@ impl CommitList {
490490 txt. push ( splitter. clone ( ) ) ;
491491 }
492492
493- let style_hash = normal
494- . then ( || theme. commit_hash ( selected) )
495- . unwrap_or_else ( || theme. commit_unhighlighted ( ) ) ;
496- let style_time = normal
497- . then ( || theme. commit_time ( selected) )
498- . unwrap_or_else ( || theme. commit_unhighlighted ( ) ) ;
499- let style_author = normal
500- . then ( || theme. commit_author ( selected) )
501- . unwrap_or_else ( || theme. commit_unhighlighted ( ) ) ;
502- let style_tags = normal
503- . then ( || theme. tags ( selected) )
504- . unwrap_or_else ( || theme. commit_unhighlighted ( ) ) ;
505- let style_branches = normal
506- . then ( || theme. branch ( selected, true ) )
507- . unwrap_or_else ( || theme. commit_unhighlighted ( ) ) ;
508- let style_msg = normal
509- . then ( || theme. text ( true , selected) )
510- . unwrap_or_else ( || theme. commit_unhighlighted ( ) ) ;
493+ let style_hash = if normal {
494+ theme. commit_hash ( selected)
495+ } else {
496+ theme. commit_unhighlighted ( )
497+ } ;
498+ let style_time = if normal {
499+ theme. commit_time ( selected)
500+ } else {
501+ theme. commit_unhighlighted ( )
502+ } ;
503+ let style_author = if normal {
504+ theme. commit_author ( selected)
505+ } else {
506+ theme. commit_unhighlighted ( )
507+ } ;
508+ let style_tags = if normal {
509+ theme. tags ( selected)
510+ } else {
511+ theme. commit_unhighlighted ( )
512+ } ;
513+ let style_branches = if normal {
514+ theme. branch ( selected, true )
515+ } else {
516+ theme. commit_unhighlighted ( )
517+ } ;
518+ let style_msg = if normal {
519+ theme. text ( true , selected)
520+ } else {
521+ theme. commit_unhighlighted ( )
522+ } ;
511523
512524 // commit hash
513525 txt. push ( Span :: styled ( Cow :: from ( & * e. hash_short ) , style_hash) ) ;
0 commit comments