diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2017-03-13 07:13:55 +0100 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2017-03-13 07:13:55 +0100 |
commit | 45dea3d409f84b7c5e2e45b0e46025023a715541 (patch) | |
tree | f0d73e533720ad263ba2adfa3e7177a9247806bc /helm-imenu.el | |
parent | f266bb66c7d831dca363fac5b010ec53e4699abd (diff) |
Value of imenu candidates can be an integer, fixit (#1704).
* helm-imenu.el (helm-imenu--candidates-1): Do it.
Diffstat (limited to 'helm-imenu.el')
-rw-r--r-- | helm-imenu.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/helm-imenu.el b/helm-imenu.el index 86505c50..4e631cc0 100644 --- a/helm-imenu.el +++ b/helm-imenu.el @@ -231,7 +231,8 @@ When nil all candidates are displayed in a single source." (setcdr elm (pcase (cdr elm) ; Same as [1]. ((and ov (pred overlayp)) (copy-overlay ov)) - ((and mk (pred markerp)) + ((and mk (or (pred markerp) + (pred numberp))) (copy-marker mk)))) (list elm)))))) |