feature: auto-select first change in commit details panel and revision/branch compare panel (#1019)

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-02-25 10:53:42 +08:00
parent 1f35e83799
commit c6747f72f9
No known key found for this signature in database
11 changed files with 71 additions and 21 deletions

View file

@ -1006,7 +1006,7 @@ namespace SourceGit.Views
if (startPosition.Location > endPosition.Location)
(startPosition, endPosition) = (endPosition, startPosition);
var startIdx = Math.Min(startPosition.Line - 1, lines.Count - 1);
var endIdx = Math.Min(endPosition.Line - 1, lines.Count - 1);