   (setq mode-name "rtags-references-tree-mode")
   (use-local-map rtags-references-tree-mode-map)
   (goto-char (point-min))
+  (rtags-init-current-line-overlay)
   (setq buffer-read-only t))
 
 (defun rtags-reset-bookmarks ()

  (run-hooks 'rtags-mode-hook)
  (goto-char (point-min))
  (setq next-error-function 'rtags-next-prev-match)
  (when rtags-highlight-current-line
    (let ((overlay (make-overlay (point-at-bol) (point-at-eol) (current-buffer))))
      (overlay-put overlay 'face 'rtags-current-line)
      (setq-local rtags-current-line-overlay overlay)))
  (setq buffer-read-only t))

(defun rtags-wrap-word (word)

                    (count-lines (point-min) (point-max))))
         ;; Optionally jump to first result and open results buffer
         (when (and rtags-popup-results-buffer (not rtags-use-helm)
           (switch-to-buffer-other-window rtags-buffer-name))
           (shrink-window-if-larger-than-buffer))
         (if rtags-use-helm
             (helm :sources '(rtags-helm-source))
           (when (and rtags-jump-to-first-match (not noautojump))
