mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Passing filenames per command line: Remove found match from input string after having found a quoted filename, so the second call to GetFileNames does not find some incomplete filename due to whitespaces in its name. See http://www.heidisql.com/forum.php?t=13743
This commit is contained in:
@ -2610,6 +2610,9 @@ var
|
|||||||
FileNames.Add(rx.Match[1])
|
FileNames.Add(rx.Match[1])
|
||||||
else
|
else
|
||||||
AbsentFiles.Add(rx.Match[1]);
|
AbsentFiles.Add(rx.Match[1]);
|
||||||
|
// Remove match from input string, so the second call to GetFileNames without quotes
|
||||||
|
// does not detect filenames cut at whitespace
|
||||||
|
Delete(CommandLine, rx.MatchPos[1], rx.MatchLen[1]);
|
||||||
if not rx.ExecNext then
|
if not rx.ExecNext then
|
||||||
break;
|
break;
|
||||||
end;
|
end;
|
||||||
|
Reference in New Issue
Block a user