mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 12:15:00 +00:00
feature<TextDiffView>: do NOT reset scroll offset after recompute diff with same change
This commit is contained in:
parent
096fd6cb22
commit
2b97d7c599
5 changed files with 38 additions and 12 deletions
|
@ -4,11 +4,6 @@ using System.Collections.Generic;
|
|||
|
||||
namespace SourceGit.ViewModels {
|
||||
public class TwoSideTextDiff : ObservableObject {
|
||||
public Vector SyncScrollOffset {
|
||||
get => _syncScrollOffset;
|
||||
set => SetProperty(ref _syncScrollOffset, value);
|
||||
}
|
||||
|
||||
public string File { get; set; } = string.Empty;
|
||||
public List<Models.TextDiffLine> Old { get; set; } = new List<Models.TextDiffLine>();
|
||||
public List<Models.TextDiffLine> New { get; set; } = new List<Models.TextDiffLine>();
|
||||
|
@ -46,7 +41,5 @@ namespace SourceGit.ViewModels {
|
|||
for (int i = 0; i < diff; i++) New.Add(new Models.TextDiffLine());
|
||||
}
|
||||
}
|
||||
|
||||
private Vector _syncScrollOffset;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue