Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
daxgames committed Sep 25, 2023
1 parent 74c183c commit 2728f36
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions launcher/src/CmderLauncher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -624,11 +624,11 @@ void RegisterShellMenu(std::wstring opt, wchar_t* keyBaseName, std::wstring cfgR

wchar_t commandStr[MAX_PATH + 20] = { 0 };
wchar_t baseCommandStr[MAX_PATH + 20] = { 0 };
if (!single) {
swprintf_s(baseCommandStr, L"\"%s\"", exePath);
if (single && !PathFileExists(windowsTerminalDir)) {
swprintf_s(baseCommandStr, L"\"%s\" /single", exePath);
}
else {
swprintf_s(baseCommandStr, L"\"%s\" /single", exePath);
swprintf_s(baseCommandStr, L"\"%s\"", exePath);
}

if (cfgRoot.length() == 0) // '/c [path]' was NOT specified
Expand Down Expand Up @@ -756,7 +756,7 @@ cmderOptions GetOption()
cmderOptions.cmderIcon = szArgList[i + 1];
i++;
}
else if (_wcsicmp(L"/single", szArgList[i]) == 0 && !PathFileExists(windowsTerminalDir)) {
else if (_wcsicmp(L"/single", szArgList[i]) == 0 && !PathFileExists(windowsTerminalDir))
{
cmderOptions.cmderSingle = true;
}
Expand Down

0 comments on commit 2728f36

Please sign in to comment.