branch: elpa/git-commit
commit 80cdadb08efcf3287f6af138608d2a71bd8d0a40
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>

    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#%[email protected]%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