From 47d48b3a786cbf155f2deba00d556d41e74651c8 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Wed, 27 May 2015 16:43:40 +0100 Subject: Consistent highlighting of search suggestions. Also suppress highlighting of matching text in previous suggestions. (It looks odd to have highlighting in some suggestions but not others, with no apparent difference to the user.) --- background_scripts/completion.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'background_scripts') diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee index b46ecc43..669f4712 100644 --- a/background_scripts/completion.coffee +++ b/background_scripts/completion.coffee @@ -503,7 +503,7 @@ class SearchEngineCompleter for url, suggestion of @previousSuggestions continue unless RankingUtils.matches queryTerms, suggestion.title # Reset various fields, they may not be correct wrt. the current query. - extend suggestion, relevancy: null, html: null, highlightTerms: true, queryTerms: queryTerms + extend suggestion, relevancy: null, html: null, queryTerms: queryTerms suggestion.relevancy = null suggestion -- cgit v1.2.3