From 87495575bcbf10c92e01a2867d4157be57add193 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Fri, 15 Feb 2013 23:15:13 -0500 Subject: [PATCH] search: Don't run a full search for equal terms Due to the timeout on the search entry, it's possible for a very quick edit to the entry to launch a subsearch on the same search string. https://bugzilla.gnome.org/show_bug.cgi?id=693937 --- js/ui/search.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/ui/search.js b/js/ui/search.js index c4eb10c24..3dd59d720 100644 --- a/js/ui/search.js +++ b/js/ui/search.js @@ -66,6 +66,8 @@ const SearchSystem = new Lang.Class({ let searchString = terms.join(' '); let previousSearchString = this._previousTerms.join(' '); + if (searchString == previousSearchString) + return; let isSubSearch = false; if (this._previousTerms.length > 0)