mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-21 13:20:30 +08:00
fix: ${files:N} will always be replaced with the first change path (#487)
* wrong loop index passed to `changes`
This commit is contained in:
@@ -55,7 +55,7 @@ namespace SourceGit.Models
|
||||
{
|
||||
var count = Math.Min(int.Parse(countStr.Substring(1)), changes.Count);
|
||||
for (int j = 0; j < count; j++)
|
||||
paths.Add(changes[i].Path);
|
||||
paths.Add(changes[j].Path);
|
||||
|
||||
if (count < changes.Count)
|
||||
more = $" and {changes.Count - count} other files";
|
||||
|
||||
Reference in New Issue
Block a user