mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-26 21:04:59 +00:00
refactor: apply input control value from end to start
For example, this will avoid applying the first parameter to $10 - $19 Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
e5b845e1c5
commit
271f02b694
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ namespace SourceGit.ViewModels
|
|||
ProgressDescription = "Run custom action ...";
|
||||
|
||||
var cmdline = _commandline;
|
||||
for (var i = 0; i < ControlParameters.Count; i++)
|
||||
for (var i = ControlParameters.Count - 1; i >= 0; i--)
|
||||
{
|
||||
var param = ControlParameters[i];
|
||||
cmdline = cmdline.Replace($"${i}", param.GetValue());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue