diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2026-01-10 09:44:03 +0100 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2026-01-10 09:44:03 +0100 |
| commit | 3133a8d6eb0df436b6c0a58b6599d3698f8be159 (patch) | |
| tree | 31116d4ac99afb47ac3e7797446d1afbc1e19353 /lisp/magit-commit.el | |
| parent | c7b70171baace2269681c531d34341fb0383abcf (diff) | |
magit-commit-diff-1: Cosmetics
Diffstat (limited to 'lisp/magit-commit.el')
| -rw-r--r-- | lisp/magit-commit.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/magit-commit.el b/lisp/magit-commit.el index 398b2b1..d3f7cc8 100644 --- a/lisp/magit-commit.el +++ b/lisp/magit-commit.el @@ -716,11 +716,11 @@ an alternative implementation." (setq arg nil))) (cond ((not - (and (eq this-command 'magit-diff-while-committing) - (and-let ((buf (magit-get-mode-buffer - 'magit-diff-mode nil 'selected))) - (and (equal rev (buffer-local-value 'magit-buffer-range buf)) - (equal arg (buffer-local-value 'magit-buffer-typearg buf))))))) + (and-let* + ((_(eq this-command 'magit-diff-while-committing)) + (buf (magit-get-mode-buffer 'magit-diff-mode nil 'selected)) + (_(equal rev (buffer-local-value 'magit-buffer-range buf))) + (_(equal arg (buffer-local-value 'magit-buffer-typearg buf))))))) ((eq command 'magit-commit-amend) (setq rev nil)) ((or squash |
