File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -636,23 +636,15 @@ impl CommitList {
636
636
if !hit_upper_bound {
637
637
self . selection = old_selection + offset;
638
638
639
- if self
640
- . selected_entry ( )
641
- . map ( |entry| entry. highlighted )
642
- . unwrap_or_default ( )
643
- {
639
+ if self . selection_highlighted ( ) {
644
640
break ;
645
641
}
646
642
}
647
643
648
644
if !hit_lower_bound {
649
645
self . selection = old_selection - offset;
650
646
651
- if self
652
- . selected_entry ( )
653
- . map ( |entry| entry. highlighted )
654
- . unwrap_or_default ( )
655
- {
647
+ if self . selection_highlighted ( ) {
656
648
break ;
657
649
}
658
650
}
@@ -666,6 +658,12 @@ impl CommitList {
666
658
}
667
659
}
668
660
661
+ fn selection_highlighted ( & mut self ) -> bool {
662
+ self . selected_entry ( )
663
+ . map ( |entry| entry. highlighted )
664
+ . unwrap_or_default ( )
665
+ }
666
+
669
667
///
670
668
pub fn needs_data ( & self , idx : usize , idx_max : usize ) -> bool {
671
669
self . items . needs_data ( idx, idx_max)
You can’t perform that action at this time.
0 commit comments