filter: Use terms instead of operands.

Operand is a confusing name because this
data structure has an attribute *called*
operand. This commit renames references to
this structure to "term", short for "search
term".
This commit is contained in:
evykassirer
2023-12-21 15:26:14 -08:00
committed by Tim Abbott
parent 2732da2bb2
commit a87b1d5ad8
22 changed files with 476 additions and 487 deletions

View File

@@ -56,7 +56,7 @@ export function respond_to_message(opts) {
return;
}
const current_filter = narrow_state.filter();
const first_term = current_filter.operators()[0];
const first_term = current_filter.terms()[0];
const first_operator = first_term.operator;
const first_operand = first_term.operand;