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

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

[nongnu] elpa/git-commit 80cdadb08e: magit-section-goto-successor--same:


From: ELPA Syncer
Subject: [nongnu] elpa/git-commit 80cdadb08e: magit-section-goto-successor--same: Work around Emacs 26 bug
Date: Tue, 19 Jul 2022 16:58:34 -0400 (EDT)

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

    magit-section-goto-successor--same: Work around Emacs 26 bug
    
    See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31840.
    
    Closes #4695.
    
    At [1] I predict that bugs like this will keep happening;
    though I had hoped that I myself would be done adding them.
    
    [1]: 
https://lists.sr.ht/~pkal/compat-devel/%3C87mtgr4rjs.fsf%40bernoul.li%3E#%3C871qxp74d0.fsf@bernoul.li%3E
---
 lisp/magit-section.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/magit-section.el b/lisp/magit-section.el
index 698a492160..d35d9a9663 100644
--- a/lisp/magit-section.el
+++ b/lisp/magit-section.el
@@ -1713,8 +1713,8 @@ invisible."
             (forward-line line)
             (forward-char char))
           (unless (eq (magit-current-section) found)
-            (goto-char start))))
-      t)))
+            (goto-char start)))
+        t))))
 
 (defun magit-section-goto-successor--related (section)
   (and-let* ((found (magit-section-goto-successor--related-1 section)))



reply via email to

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