Commit 8635147c authored by Lars Ingebrigtsen's avatar Lars Ingebrigtsen

Fix imenu menu when we're auto-refreshing

* lisp/imenu.el (imenu--make-index-alist): Don't add a *Refresh*
item if we're auto-refreshing (bug#30449).
parent 3a6b5e6a
Pipeline #3169 passed with stage
in 73 minutes and 57 seconds
......@@ -510,8 +510,9 @@ See `imenu--index-alist' for the format of the index alist."
"No items suitable for an index found in this buffer"))
(or imenu--index-alist
(setq imenu--index-alist (list nil)))
;; Add a rescan option to the index.
(cons imenu--rescan-item imenu--index-alist))
(unless imenu-auto-rescan
;; Add a rescan option to the index.
(cons imenu--rescan-item imenu--index-alist)))
(defvar imenu--cleanup-seen nil)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment