emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/git-commit 1ab107a72d 3/8: Use cl-decf


From: ELPA Syncer
Subject: [nongnu] elpa/git-commit 1ab107a72d 3/8: Use cl-decf
Date: Tue, 19 Sep 2023 12:59:40 -0400 (EDT)

branch: elpa/git-commit
commit 1ab107a72d9022383ce4e0e6fc1460201d58dcab
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    Use cl-decf
---
 lisp/magit-section.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/magit-section.el b/lisp/magit-section.el
index 73f88ac65f..869ceaf98b 100644
--- a/lisp/magit-section.el
+++ b/lisp/magit-section.el
@@ -1009,7 +1009,7 @@ If LEVEL is negative, show up to the absolute value.
 Sections at higher levels are hidden."
   (if (< level 0)
       (let ((s (magit-current-section)))
-        (setq level (- level))
+        (cl-decf level)
         (while (> (1- (length (magit-section-ident s))) level)
           (setq s (oref s parent))
           (goto-char (oref s start)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]