Fix another narrow-to-defun problem in js-mode

* lisp/progmodes/js.el (js--function-prologue-beginning): Fix typo
in looking-back form (bug#51926).
This commit is contained in:
Lars Ingebrigtsen 2021-11-20 10:20:43 +01:00
parent 9f06977782
commit bc99604c7a

View 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