search: Match an empty array, not a null one

When the terms are missing, we pass an empty array, not a null one.
This commit is contained in:
Jasper St. Pierre 2014-09-30 00:19:55 -06:00
parent 991179835e
commit 2cefc8be27

View File

@ -492,7 +492,7 @@ const SearchResults = new Lang.Class({
this._cancellable.cancel();
this._cancellable.reset();
if (!terms) {
if (terms.length == 0) {
this._clearSearchTimeout();
return;
}