mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-20 19:55:00 +00:00
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:
parent
1f35e83799
commit
c6747f72f9
11 changed files with 71 additions and 21 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue