From 93000bc401417954c8d9c1f52ef449292c2cd6fa Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Fri, 15 May 2015 11:02:49 +0100 Subject: Use query text as title, if necessary and possible. --- background_scripts/completion.coffee | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'background_scripts') diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee index 82a8f310..c9a03629 100644 --- a/background_scripts/completion.coffee +++ b/background_scripts/completion.coffee @@ -245,6 +245,10 @@ class HistoryCompleter catch null + # If this history item does not have a title and we found its query text above, then use its query + # text as its title. + entry.title ||= insertText if insertText? + new Suggestion queryTerms: queryTerms type: "history" -- cgit v1.2.3