summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2020-12-23 19:30:47 -0500
committerKyle Meyer <kyle@kyleam.com>2020-12-24 00:25:22 -0500
commit0d58032ae7157d3ce8acfac3aad955a955f8172c (patch)
treea5b8e07d9d5306042208af810f0f5d26ec8fc677
parent0bb4e47a6caeaa30279ffb4e1b04271b5a0c7a40 (diff)
downloademacs.d-0d58032ae7157d3ce8acfac3aad955a955f8172c.tar.gz
km/magit-copy-as-kill: Cosmetics
-rw-r--r--lisp/km-magit.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/km-magit.el b/lisp/km-magit.el
index 91c03b8..22c5769 100644
--- a/lisp/km-magit.el
+++ b/lisp/km-magit.el
@@ -1022,9 +1022,9 @@ With a prefix argument of -1, always call `magit-copy-section-value'
Otherwise, the current prefix argument is passed to each hook
function."
(interactive)
- (or (unless (= (prefix-numeric-value current-prefix-arg) -1)
- (run-hook-with-args-until-success
- 'km/magit-copy-functions current-prefix-arg))
+ (or (and (/= (prefix-numeric-value current-prefix-arg) -1)
+ (run-hook-with-args-until-success
+ 'km/magit-copy-functions current-prefix-arg))
(magit-copy-section-value)))