viewSelector: Don't strip whitespace from search strings

This is already done by the search system itself.

https://bugzilla.gnome.org/show_bug.cgi?id=693458
This commit is contained in:
Jasper St. Pierre 2013-02-08 20:39:16 -05:00
parent 8c5a343729
commit c8365b7444

View File

@ -423,8 +423,7 @@ const ViewSelector = new Lang.Class({
_doSearch: function () { _doSearch: function () {
this._searchTimeoutId = 0; this._searchTimeoutId = 0;
let text = this._text.get_text().replace(/^\s+/g, '').replace(/\s+$/g, ''); this._searchResults.doSearch(this._text.text);
this._searchResults.doSearch(text);
this._showPage(this._searchPage); this._showPage(this._searchPage);
}, },