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

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

[elpa] externals/js2-mode 67f2a48adf 1/2: Update js2-mode.el


From: ELPA Syncer
Subject: [elpa] externals/js2-mode 67f2a48adf 1/2: Update js2-mode.el
Date: Wed, 4 Dec 2024 21:58:14 -0500 (EST)

branch: externals/js2-mode
commit 67f2a48adf1c44ae360084dda0b386dc6f918589
Author: Vlatko Ć urlan <vlatko.surlan@evorion.hr>
Commit: GitHub <noreply@github.com>

    Update js2-mode.el
    
    Make js2-beginning-of-defun skip comments. Fixes mark-defun bug for 
js2-mode when invoked inside a comment.
---
 js2-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/js2-mode.el b/js2-mode.el
index ea07d8b0e4..a59f8565cc 100644
--- a/js2-mode.el
+++ b/js2-mode.el
@@ -12867,7 +12867,7 @@ to beginning of previous script-level element.
 With ARG N, do that N times. If N is negative, move forward."
   (setq arg (or arg 1))
   (if (cl-plusp arg)
-      (let ((parent (js2-node-parent-script-or-fn (js2-node-at-point))))
+      (let ((parent (js2-node-parent-script-or-fn (js2-node-at-point nil t))))
         (when (cond
                ((js2-function-node-p parent)
                 (goto-char (js2-node-abs-pos parent)))



reply via email to

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