Skip to content

Commit

Permalink
Remember spell check language - thx Legion :)
Browse files Browse the repository at this point in the history
  • Loading branch information
niksedk committed May 16, 2020
1 parent 38a75d0 commit d3039ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Forms/SpellCheck.cs
Expand Up @@ -999,7 +999,7 @@ public void DoSpellCheck(bool autoDetect, Subtitle subtitle, string dictionaryFo
_languageName = LanguageAutoDetect.AutoDetectLanguageName(_languageName, subtitle);
if (_languageName != null && _languageName.Length > 3)
{
string start = _languageName.Substring(0, 3);
string start = _languageName.Substring(0, 2);
if (_languageName.StartsWith(start, StringComparison.Ordinal) && Configuration.Settings.General.SpellCheckLanguage != null &&
Configuration.Settings.General.SpellCheckLanguage.StartsWith(start, StringComparison.Ordinal) && _languageName != Configuration.Settings.General.SpellCheckLanguage)
{
Expand Down

0 comments on commit d3039ac

Please sign in to comment.