[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master bc99604: Fix another narrow-to-defun problem in js-mode
From: |
Lars Ingebrigtsen |
Subject: |
master bc99604: Fix another narrow-to-defun problem in js-mode |
Date: |
Sat, 20 Nov 2021 04:21:05 -0500 (EST) |
branch: master
commit bc99604c7ac2c6673615d0ecac4d233bf6a4ff16
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
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).
---
lisp/progmodes/js.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el
index e5e83be..9303f1e 100644
--- a/lisp/progmodes/js.el
+++ b/lisp/progmodes/js.el
@@ -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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master bc99604: Fix another narrow-to-defun problem in js-mode,
Lars Ingebrigtsen <=