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

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

[nongnu] elpa/go-mode e79970d 224/495: fix beginning-of-defun for abs(co


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode e79970d 224/495: fix beginning-of-defun for abs(count) > 1
Date: Sat, 7 Aug 2021 09:05:18 -0400 (EDT)

branch: elpa/go-mode
commit e79970d38d80f740bb1b9ce991fcaca553a90a83
Author: Dominik Honnef <dominikh@fork-bomb.org>
Commit: Dominik Honnef <dominikh@fork-bomb.org>

    fix beginning-of-defun for abs(count) > 1
---
 go-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/go-mode.el b/go-mode.el
index e7e6981..9b81ba8 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -524,9 +524,9 @@ current line will be returned."
 
 (defun go-beginning-of-defun (&optional count)
   (setq count (or count 1))
-  (let ((first t)
-        failure)
+  (let (first failure)
     (dotimes (i (abs count))
+      (setq first t)
       (while (and (not failure)
                   (or first (go-in-string-or-comment-p)))
         (if (>= count 0)



reply via email to

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