diff options
| -rw-r--r-- | lisp/imenu.el | 6 |
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." ;; widen if outside narrowing (widen)) (goto-char (cdr index-item))) + ((integerp (cdr index-item)) + (if (or (< (cdr index-item) (point-min)) + (> (cdr index-item) (point-max))) + ;; widen if outside narrowing + (widen)) + (goto-char (cdr index-item))) (t ;; A special item with a function. (let ((function (cadr index-item)) |
