diff options
-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))) |