diff --git a/IDE/src/IDEApp.bf b/IDE/src/IDEApp.bf index b3cc228c..30277e86 100644 --- a/IDE/src/IDEApp.bf +++ b/IDE/src/IDEApp.bf @@ -7479,6 +7479,7 @@ namespace IDE startInfo.CreateNoWindow = true; } +#if BF_PLATFORM_WINDOWS if (runFlags.HasFlag(.ShellCommand)) { String shellArgs = scope .(); @@ -7489,6 +7490,7 @@ namespace IDE startInfo.SetFileName("cmd.exe"); startInfo.SetArguments(shellArgs); } +#endif if (envVars != null) { diff --git a/IDE/src/SpellChecker.bf b/IDE/src/SpellChecker.bf index f53d828d..236bebd1 100644 --- a/IDE/src/SpellChecker.bf +++ b/IDE/src/SpellChecker.bf @@ -60,8 +60,12 @@ namespace IDE { if (wordResult case .Err) break; - AddWord(wordResult); - mCustomDictionaryWordList.Add(new String(wordResult)); + if (wordResult.Value.IsEmpty) + continue; + String wordStr = new String(wordResult); + AddWord(wordStr); + if (!mCustomDictionaryWordList.Add(wordStr)) + delete wordStr; } }