branch: elpa/magit
commit c479be8785dadd6da051ec43e0c1562295d41811
Author: Sean Allred <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
magit-copy-section-value: Fix default case
If the current section type is not one of
'(branch commit module-commit tag)
the intention here is to just copy the raw section value, but this was
not being done. Instead, `magit-section-case' was unfortunately
interpreting the `(kill-new (message ...))' expression as a list of
section types. Whoops!
Use the default case to correct this error.
---
lisp/magit-extras.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/magit-extras.el b/lisp/magit-extras.el
index e43526d689c..5a931db0f56 100644
--- a/lisp/magit-extras.el
+++ b/lisp/magit-extras.el
@@ -794,7 +794,7 @@ argument."
(push (list value default-directory) magit-revision-stack)
(kill-new (message "%s" (or (and current-prefix-arg ref)
value)))))
- ((kill-new (message "%s" value))))))))
+ (t (kill-new (message "%s" value))))))))
;;;###autoload
(defun magit-copy-buffer-revision ()