File tree Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -561,20 +561,16 @@ fn symbol_ui(
561
561
}
562
562
}
563
563
} else if response. hovered ( ) {
564
- ret = Some ( if let Some ( target_symbol) = symbol_diff. target_symbol {
565
- if column == 0 {
566
- DiffViewAction :: SetSymbolHighlight (
567
- Some ( symbol_diff. symbol_ref ) ,
568
- Some ( target_symbol) ,
569
- )
570
- } else {
571
- DiffViewAction :: SetSymbolHighlight (
572
- Some ( target_symbol) ,
573
- Some ( symbol_diff. symbol_ref ) ,
574
- )
575
- }
564
+ ret = Some ( if column == 0 {
565
+ DiffViewAction :: SetSymbolHighlight (
566
+ Some ( symbol_diff. symbol_ref ) ,
567
+ symbol_diff. target_symbol ,
568
+ )
576
569
} else {
577
- DiffViewAction :: SetSymbolHighlight ( None , None )
570
+ DiffViewAction :: SetSymbolHighlight (
571
+ symbol_diff. target_symbol ,
572
+ Some ( symbol_diff. symbol_ref ) ,
573
+ )
578
574
} ) ;
579
575
}
580
576
ret
You can’t perform that action at this time.
0 commit comments