Permalink
Browse files

Bugfix: Clear old namespace when a new one is found

  • Loading branch information...
1 parent 52456c0 commit 7f5e1b3d9c22221c08ef94e296eae0bb8adb63dc @defunkt committed Mar 8, 2010
Showing with 4 additions and 1 deletion.
  1. +4 −1 coffee-mode.el
View
@@ -320,7 +320,10 @@ For detail, see `comment-dwim'."
;; If this is the start of a new namespace, save the namespace's
;; indentation level and name.
- (when (and (not ns-name) (setq ns-name (match-string 8)))
+ (when (match-string 8)
+ ;; Set the name.
+ (setq ns-name (match-string 8))
+
;; If this is a class declaration, add :: to the namespace.
(setq ns-name (concat ns-name "::"))

0 comments on commit 7f5e1b3

Please sign in to comment.