Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
search_suggestion: Explain use of the condition.
Aman Agrawalebd24d5e11c5
diff --git a/web/src/search_suggestion.ts b/web/src/search_suggestion.tsindex cd3a4634044..627c89e31d4 100644--- a/web/src/search_suggestion.ts+++ b/web/src/search_suggestion.ts@@ -291,6 +291,9 @@ function get_group_suggestions(};terms = terms.slice(-1);} else if (last.operator === "") {+ // User hasn't started typing the next term yet; use the+ // last complete term to generate suggestions.+ assert(last.operand === "");last = last_complete_term;} else {// If they already started another term with an other operator, we're