mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07: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