diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2025-09-13 21:40:31 +0200 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2025-09-13 21:40:31 +0200 |
| commit | e3edbf0d0764584d9e0a30e38bd635ec5052893f (patch) | |
| tree | b5643ecc82b7a0beaa53d716079bd9f0cca4f369 | |
| parent | 58fa12214798db1a37db0e4850c7d919b92500d6 (diff) | |
magit--age: Cosmetics
| -rw-r--r-- | lisp/magit-margin.el | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/magit-margin.el b/lisp/magit-margin.el index a85578a..841da40 100644 --- a/lisp/magit-margin.el +++ b/lisp/magit-margin.el @@ -246,14 +246,14 @@ English.") (string-to-number date) date)))) (spec magit--age-spec)) - (pcase-let ((`(,char ,unit ,units ,weight) (car spec))) - (let ((cnt (round (/ age weight 1.0)))) - (if (or (not (cdr spec)) - (>= (/ age weight) 1)) - (list cnt (cond (abbreviate char) - ((= cnt 1) unit) - (units))) - (calc age (cdr spec))))))) + (pcase-let* ((`((,char ,unit ,units ,weight) . ,spec) spec) + (cnt (round (/ age weight 1.0)))) + (if (or (not spec) + (>= (/ age weight) 1)) + (list cnt (cond (abbreviate char) + ((= cnt 1) unit) + (units))) + (calc age spec))))) ;;; _ (provide 'magit-margin) |
