mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-21 21:30:37 +08: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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user