mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -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:
parent
5fef6e93b9
commit
cc66afe5e2
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ namespace SourceGit.Models
|
||||||
{
|
{
|
||||||
var count = Math.Min(int.Parse(countStr.Substring(1)), changes.Count);
|
var count = Math.Min(int.Parse(countStr.Substring(1)), changes.Count);
|
||||||
for (int j = 0; j < count; j++)
|
for (int j = 0; j < count; j++)
|
||||||
paths.Add(changes[i].Path);
|
paths.Add(changes[j].Path);
|
||||||
|
|
||||||
if (count < changes.Count)
|
if (count < changes.Count)
|
||||||
more = $" and {changes.Count - count} other files";
|
more = $" and {changes.Count - count} other files";
|
||||||
|
|
Loading…
Reference in a new issue