From 76094437cbaec65c3facdc10c821611e4e46d5f1 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Wed, 10 Jun 2020 07:12:26 -0700 Subject: [PATCH] IDE fixes --- IDE/src/IDEApp.bf | 2 ++ IDE/src/SpellChecker.bf | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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; } }