]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix another narrow-to-defun problem in js-mode
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 20 Nov 2021 09:20:43 +0000 (10:20 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 20 Nov 2021 09:21:00 +0000 (10:21 +0100)
* lisp/progmodes/js.el (js--function-prologue-beginning): Fix typo
in looking-back form (bug#51926).

lisp/progmodes/js.el

index e5e83beff6c07bf5e812cb8cc9a3c61cc9f2593f..9303f1ecb918e50b4bc0b200b7c0d11d8baeb39f 100644 (file)
@@ -1247,7 +1247,7 @@ LIMIT defaults to point."
                         (save-excursion
                           (goto-char orig-match-start)
                           (when (looking-back "\\_<async\\_>[ \t\n]+"
-                                              (- (point) 3))
+                                              (- (point) 30))
                             (setq orig-match-start (match-beginning 0))))
                         (make-js--pitem
                          :paren-depth orig-depth