From dc5bd424770532a21de224877f2e4b7b0e47efb6 Mon Sep 17 00:00:00 2001 From: goran-w Date: Sat, 16 Nov 2024 13:31:39 +0100 Subject: [PATCH] Make sure SyncScrollOffset is updated after JumpToChangeBlock() --- src/Views/TextDiffView.axaml.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Views/TextDiffView.axaml.cs b/src/Views/TextDiffView.axaml.cs index 4f819f0a..d91d1ba9 100644 --- a/src/Views/TextDiffView.axaml.cs +++ b/src/Views/TextDiffView.axaml.cs @@ -1459,6 +1459,8 @@ namespace SourceGit.Views foreach (var p in v.Editor.Presenter.GetVisualDescendants().OfType()) { p.JumpToChangeBlock((int)e.NewValue); + if (p is SingleSideTextDiffPresenter ssp) + ssp.ForceSyncScrollOffset(); } } });