Skip to content

Commit e0c3028

Browse files
authored
Merge pull request #606 from evorion/patch-1
Make js2-beginning-of-defun skip comments
2 parents 62d6cb1 + 67f2a48 commit e0c3028

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js2-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12867,7 +12867,7 @@ to beginning of previous script-level element.
1286712867
With ARG N, do that N times. If N is negative, move forward."
1286812868
(setq arg (or arg 1))
1286912869
(if (cl-plusp arg)
12870-
(let ((parent (js2-node-parent-script-or-fn (js2-node-at-point))))
12870+
(let ((parent (js2-node-parent-script-or-fn (js2-node-at-point nil t))))
1287112871
(when (cond
1287212872
((js2-function-node-p parent)
1287312873
(goto-char (js2-node-abs-pos parent)))

0 commit comments

Comments
 (0)