aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/imenu.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/imenu.el b/lisp/imenu.el
index fbc184ae9ae..ff909cd227e 100644
--- a/lisp/imenu.el
+++ b/lisp/imenu.el
@@ -904,6 +904,12 @@ See `imenu-choose-buffer-index' for more information."
904 ;; widen if outside narrowing 904 ;; widen if outside narrowing
905 (widen)) 905 (widen))
906 (goto-char (cdr index-item))) 906 (goto-char (cdr index-item)))
907 ((integerp (cdr index-item))
908 (if (or (< (cdr index-item) (point-min))
909 (> (cdr index-item) (point-max)))
910 ;; widen if outside narrowing
911 (widen))
912 (goto-char (cdr index-item)))
907 (t 913 (t
908 ;; A special item with a function. 914 ;; A special item with a function.
909 (let ((function (cadr index-item)) 915 (let ((function (cadr index-item))