; * lisp/kmacro.el (kmacro-add-counter): cut useless variable ref
authorMattias Engdegård <mattiase@acm.org>
Mon, 6 May 2024 14:09:08 +0000 (16:09 +0200)
committerMattias Engdegård <mattiase@acm.org>
Mon, 6 May 2024 18:02:17 +0000 (20:02 +0200)
lisp/kmacro.el

index a16f70105c11c3af098fd3eec390dce7f0083b12..07a13d5632c73d7d6ec341a0622c458e2fdb5f2b 100644 (file)
@@ -342,7 +342,7 @@ information."
     (setq kmacro-last-counter kmacro-counter
          kmacro-counter (if (and current-prefix-arg (listp current-prefix-arg))
                             last
-                          kmacro-counter (+ kmacro-counter arg))))
+                          (+ kmacro-counter arg))))
   (unless executing-kbd-macro
     (kmacro-display-counter)))