branch: elpa/magit
commit 77c923c0f0b4caa7ac0199482ab9fa1e043f4e8e
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>

    magit-insert-error-header: Use substitute-command-keys
---
 lisp/magit-status.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lisp/magit-status.el b/lisp/magit-status.el
index dce8c36b7f..6b37a8e3ff 100644
--- a/lisp/magit-status.el
+++ b/lisp/magit-status.el
@@ -566,9 +566,9 @@ the status buffer causes this section to disappear again."
       (insert (propertize (format "%-10s" "GitError! ")
                           'font-lock-face 'magit-section-heading))
       (insert (propertize magit-this-error 'font-lock-face 'error))
-      (when-let ((_ magit-show-process-buffer-hint)
-                 (key (car (where-is-internal 'magit-process-buffer))))
-        (insert (format "  [Type `%s' for details]" (key-description key))))
+      (when magit-show-process-buffer-hint
+        (insert (substitute-command-keys
+                 "  [Type \\[magit-process-buffer] for details]")))
       (insert ?\n))
     (setq magit-this-error nil)))
 

Reply via email to