mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-22 20:37:19 -08:00
feature<DiffViewer>: 定位差异(Previous & Next)时现在会高亮当前位置
This commit is contained in:
parent
cc661d3226
commit
60584669f6
1 changed files with 2 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue