From be0b00d6d970a4608aec8261c922f56bc5ed71c5 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Thu, 31 Dec 2015 21:41:56 +0200 Subject: [PATCH] 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 74f0ea2f1..7ee1599a8 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. -- 2.39.2