branch: elpa/git-commit
commit 512d78cb3a15cd4fec8f14eb219462b577e6547d
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>

    magit-imenu--{*}: Cosmetics
---
 lisp/magit-imenu.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lisp/magit-imenu.el b/lisp/magit-imenu.el
index 3a080825de..aef6175278 100644
--- a/lisp/magit-imenu.el
+++ b/lisp/magit-imenu.el
@@ -50,7 +50,7 @@ Used as a value for `imenu-prev-index-position-function'."
   "Return imenu name for line at point.
 Point should be at the beginning of the line.  This function
 is used as a value for `imenu-extract-index-name-function'."
-  (elt (tabulated-list-get-entry) 0))
+  (car (tabulated-list-get-entry)))
 
 ;;; Repolist mode
 
@@ -68,8 +68,8 @@ Point should be at the beginning of the line.  This function
 is used as a value for `imenu-extract-index-name-function'."
   (let ((entry (tabulated-list-get-entry)))
     (format "%s (%s)"
-            (elt entry 0)
-            (elt entry (1- (length entry))))))
+            (car entry)
+            (car (last entry)))))
 
 ;;; Rebase mode
 

Reply via email to