diff --git a/src/ui/windows/TogglDesktop/TogglDesktop/AutoCompletion/AutoCompleteController.cs b/src/ui/windows/TogglDesktop/TogglDesktop/AutoCompletion/AutoCompleteController.cs index 38b5b14fa8..ee45e5d1e9 100644 --- a/src/ui/windows/TogglDesktop/TogglDesktop/AutoCompletion/AutoCompleteController.cs +++ b/src/ui/windows/TogglDesktop/TogglDesktop/AutoCompletion/AutoCompleteController.cs @@ -227,12 +227,12 @@ private bool Filter(object item) foreach (string word in words) { - if (listItem.Text.IndexOf(word, StringComparison.OrdinalIgnoreCase) >= 0) + if (listItem.Text.IndexOf(word, StringComparison.OrdinalIgnoreCase) == -1) { - return true; + return false; } } - return false; + return true; }