diff options
| author | nicole mazzuca <mazzucan@outlook.com> | 2021-01-19 19:42:00 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-19 19:42:00 -0800 |
| commit | c977e3861d24f54b589e321c852a79b027df899b (patch) | |
| tree | fa352fb2466d074c5da639a77b64652d6946dfc1 /toolsrc | |
| parent | 391252429871584674005b3ed4e131c60425f2fe (diff) | |
| download | vcpkg-c977e3861d24f54b589e321c852a79b027df899b.tar.gz vcpkg-c977e3861d24f54b589e321c852a79b027df899b.zip | |
[vcpkg] fix edit command on windows (#15767)
* [vcpkg] fix edit command on windows
* format
Diffstat (limited to 'toolsrc')
| -rw-r--r-- | toolsrc/src/vcpkg/commands.edit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toolsrc/src/vcpkg/commands.edit.cpp b/toolsrc/src/vcpkg/commands.edit.cpp index c8455bb92..720f6b14d 100644 --- a/toolsrc/src/vcpkg/commands.edit.cpp +++ b/toolsrc/src/vcpkg/commands.edit.cpp @@ -263,8 +263,8 @@ namespace vcpkg::Commands::Edit if (editor_exe == "Code.exe" || editor_exe == "Code - Insiders.exe") { // note that we are invoking cmd silently but Code.exe is relaunched from there - System::cmd_execute_background( - System::Command("cmd").string_arg("/c").string_arg(cmd_line.command_line()).raw_arg("<NUL")); + System::cmd_execute_background(System::Command("cmd").string_arg("/c").raw_arg( + Strings::concat('"', cmd_line.command_line(), R"( <NUL")"))); Checks::exit_success(VCPKG_LINE_INFO); } #endif |
