mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -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 (next.IsDifference) {
|
||||||
if (firstModeEnded || next.Mode != first.Mode) {
|
if (firstModeEnded || next.Mode != first.Mode) {
|
||||||
scroller.ScrollToVerticalOffset(i);
|
scroller.ScrollToVerticalOffset(i);
|
||||||
|
grid.SelectedIndex = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -659,6 +660,7 @@ namespace SourceGit.Views.Widgets {
|
||||||
if (next.IsDifference) {
|
if (next.IsDifference) {
|
||||||
if (firstModeEnded || next.Mode != first.Mode) {
|
if (firstModeEnded || next.Mode != first.Mode) {
|
||||||
scroller.ScrollToVerticalOffset(i);
|
scroller.ScrollToVerticalOffset(i);
|
||||||
|
grid.SelectedIndex = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue