From e0c219b46db260dbe5fad75fd6d5acf309389fbc Mon Sep 17 00:00:00 2001 From: goran-w Date: Fri, 15 Nov 2024 12:03:18 +0100 Subject: [PATCH] Unset current change-block in RefreshContent() --- 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 42e4bb5a..4f819f0a 100644 --- a/src/Views/TextDiffView.axaml.cs +++ b/src/Views/TextDiffView.axaml.cs @@ -1509,6 +1509,8 @@ namespace SourceGit.Views IsUnstagedChange = diff.Option.IsUnstaged; EnableChunkSelection = diff.Option.WorkingCopyChange != null; + + diff.CurrentChangeBlockIdx = -1; // Unset current change block. } private void OnStageChunk(object _1, RoutedEventArgs _2)