diff --git a/src/Views/Widgets/DiffViewer.xaml.cs b/src/Views/Widgets/DiffViewer.xaml.cs index 41a82d5c..1f27e00c 100644 --- a/src/Views/Widgets/DiffViewer.xaml.cs +++ b/src/Views/Widgets/DiffViewer.xaml.cs @@ -636,6 +636,7 @@ namespace SourceGit.Views.Widgets { if (next.IsDifference) { if (firstModeEnded || next.Mode != first.Mode) { scroller.ScrollToVerticalOffset(i); + grid.SelectedIndex = i; break; } } else { @@ -659,6 +660,7 @@ namespace SourceGit.Views.Widgets { if (next.IsDifference) { if (firstModeEnded || next.Mode != first.Mode) { scroller.ScrollToVerticalOffset(i); + grid.SelectedIndex = i; break; } } else {