From 0d58032ae7157d3ce8acfac3aad955a955f8172c Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Wed, 23 Dec 2020 19:30:47 -0500 Subject: km/magit-copy-as-kill: Cosmetics --- lisp/km-magit.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lisp') 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))) -- cgit v1.2.3