branch: elpa/magit
commit 83fe4321b7f3273914b54af230a9d93e0051e10b
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>

    git-rebase-current-line: Use correct conditional
---
 lisp/git-rebase.el | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/lisp/git-rebase.el b/lisp/git-rebase.el
index 098a29e9d8c..eec7d4d4ee5 100644
--- a/lisp/git-rebase.el
+++ b/lisp/git-rebase.el
@@ -362,14 +362,14 @@ BATCH is non-nil, in which case nil is returned.  Non-nil
 BATCH also ignores commented lines."
   (save-excursion
     (goto-char (line-beginning-position))
-    (if-let ((re-start (if batch
-                           "^"
-                         (format "^\\(?99:%s\\)? *"
-                                 (regexp-quote comment-start))))
-             (type (seq-some (pcase-lambda (`(,type . ,re))
-                               (let ((case-fold-search nil))
-                                 (and (looking-at (concat re-start re)) type)))
-                             git-rebase-line-regexps)))
+    (if-let* ((re-start (if batch
+                            "^"
+                          (format "^\\(?99:%s\\)? *"
+                                  (regexp-quote comment-start))))
+              (type (seq-some (pcase-lambda (`(,type . ,re))
+                                (let ((case-fold-search nil))
+                                  (and (looking-at (concat re-start re)) 
type)))
+                              git-rebase-line-regexps)))
         (git-rebase-action
          :action-type    type
          :action         (and-let* ((action (match-str 1)))

Reply via email to