branch: master
commit be0b00d6d970a4608aec8261c922f56bc5ed71c5
Author: Dmitry Gutov <[email protected]>
Commit: Dmitry Gutov <[email protected]>
js2-mode-extend-comment: Don't check that the next line is also commented
Fixes #302
---
js2-mode.el | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/js2-mode.el b/js2-mode.el
index 74f0ea2..7ee1599 100644
--- a/js2-mode.el
+++ b/js2-mode.el
@@ -11905,10 +11905,7 @@ PARSE-STATUS is as documented in `parse-partial-sexp'."
(insert "\n")
(indent-to col)
(insert "*/"))))
- ((and single
- (save-excursion
- (and (zerop (forward-line 1))
- (looking-at "\\s-*//"))))
+ (single
(indent-to col)
(insert "// ")))
;; Don't need to extend the comment after all.