         string.substring(end)
     string
 
+  highlightUrlTerms: (string) ->
+    if @highlightTermsExcludeUrl then string else @highlightQueryTerms string
+
   # Merges the given list of ranges such that any overlapping regions are combined. E.g.
   #   mergeRanges([0, 4], [3, 6]) => [0, 6].  A range is [startIndex, endIndex].
   mergeRanges: (ranges) ->

    previousSuggestions =
      for url, suggestion of @previousSuggestions
        continue unless RankingUtils.matches queryTerms, suggestion.title
        # Reset the previous relevancy and HTML, they may not be correct wrt. the current query.
        extend suggestion, relevancy: null, html: null
        suggestion.relevancy = null
        suggestion


         <span class="vimiumReset vomnibarTitle">#{@highlightQueryTerms Utils.escapeHtml @title}</span>
       </div>
       <div class="vimiumReset vomnibarBottomHalf">
        <span class="vimiumReset vomnibarUrl">#{@highlightUrlTerms Utils.escapeHtml @shortenUrl()}</span>
        #{relevancyHtml}
      </div>
      """
