Skip to content

Commit 5e9f6fa

Browse files
committed
Unset current change-block in RefreshContent()
1 parent ba9e35f commit 5e9f6fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Views/TextDiffView.axaml.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1639,6 +1639,8 @@ private void RefreshContent(Models.TextDiff diff, bool keepScrollOffset = true)
16391639

16401640
IsUnstagedChange = diff.Option.IsUnstaged;
16411641
EnableChunkSelection = diff.Option.WorkingCopyChange != null;
1642+
1643+
diff.CurrentChangeBlockIdx = -1; // Unset current change block.
16421644
}
16431645

16441646
private void OnStageChunk(object _1, RoutedEventArgs _2)

0 commit comments

Comments
 (0)