1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-15 14:54:09 +02:00

IDE fixes

This commit is contained in:
Brian Fiete 2020-06-10 07:12:26 -07:00
parent 5da74382d4
commit 76094437cb
2 changed files with 8 additions and 2 deletions

View file

@ -7479,6 +7479,7 @@ namespace IDE
startInfo.CreateNoWindow = true; startInfo.CreateNoWindow = true;
} }
#if BF_PLATFORM_WINDOWS
if (runFlags.HasFlag(.ShellCommand)) if (runFlags.HasFlag(.ShellCommand))
{ {
String shellArgs = scope .(); String shellArgs = scope .();
@ -7489,6 +7490,7 @@ namespace IDE
startInfo.SetFileName("cmd.exe"); startInfo.SetFileName("cmd.exe");
startInfo.SetArguments(shellArgs); startInfo.SetArguments(shellArgs);
} }
#endif
if (envVars != null) if (envVars != null)
{ {

View file

@ -60,8 +60,12 @@ namespace IDE
{ {
if (wordResult case .Err) if (wordResult case .Err)
break; break;
AddWord(wordResult); if (wordResult.Value.IsEmpty)
mCustomDictionaryWordList.Add(new String(wordResult)); continue;
String wordStr = new String(wordResult);
AddWord(wordStr);
if (!mCustomDictionaryWordList.Add(wordStr))
delete wordStr;
} }
} }