emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] 43/46: Fix toggling single-line comments


From: Dmitry Gutov
Subject: [elpa] 43/46: Fix toggling single-line comments
Date: Sat, 15 Nov 2014 20:58:13 +0000

dgutov pushed a commit to branch master
in repository elpa.

commit d805114efc562a59ec5903c9fa01dcc27924d979
Author: Simen Heggestøyl <address@hidden>
Date:   Sat Nov 15 17:19:50 2014 +0100

    Fix toggling single-line comments
    
    Fixes #179
---
 js2-mode.el |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/js2-mode.el b/js2-mode.el
index 8ac9a0f..a835c92 100644
--- a/js2-mode.el
+++ b/js2-mode.el
@@ -11129,8 +11129,8 @@ If there is no such matching line, returns current end 
of line."
       (while (and (zerop (forward-line direction))
                   (looking-at js2-mode-//-comment-re)
                   (eq indent (length (match-string 1))))
-        (setq pos (point-at-eol))
-      pos))))
+        (setq pos (point-at-eol)))
+      pos)))
 
 (defun js2-mode-hide-//-comments ()
   "Fold adjacent 1-line comments, showing only snippet of first one."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]