diff options
| -rw-r--r-- | background_scripts/completion.coffee | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee index fb3356da..54b94eb5 100644 --- a/background_scripts/completion.coffee +++ b/background_scripts/completion.coffee @@ -114,9 +114,9 @@ class BookmarkCompleter onBookmarksLoaded: -> @performSearch() if @currentSearch performSearch: -> - # If the folder separator character is in the query, then we'll use the bookmark's full path as its title. + # If the folder separator character the first character in any query term, then we'll use the bookmark's full path as its title. # Otherwise, we'll just use the its regular title. - usePathAndTitle = @currentSearch.queryTerms.reduce ((prev,term) => prev || term.indexOf(@folderSeparator) != -1), false + usePathAndTitle = @currentSearch.queryTerms.reduce ((prev,term) => prev || term.indexOf(@folderSeparator) == 0), false results = if @currentSearch.queryTerms.length > 0 @bookmarks.filter (bookmark) => |
