diff options
author | Kyle Meyer <kyle@kyleam.com> | 2020-12-23 19:30:47 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2020-12-24 00:25:22 -0500 |
commit | 0d58032ae7157d3ce8acfac3aad955a955f8172c (patch) | |
tree | a5b8e07d9d5306042208af810f0f5d26ec8fc677 /lisp | |
parent | 0bb4e47a6caeaa30279ffb4e1b04271b5a0c7a40 (diff) | |
download | emacs.d-0d58032ae7157d3ce8acfac3aad955a955f8172c.tar.gz |
km/magit-copy-as-kill: Cosmetics
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/km-magit.el | 6 |
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))) |