From cabf1e84d3925f67bed20c168054a03f68e6a286 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 09ca0dc9..26aed977 100644 --- a/src/Views/TextDiffView.axaml.cs +++ b/src/Views/TextDiffView.axaml.cs @@ -1589,6 +1589,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(); } } });