Permalink
Browse files

Fixed inf loop in coffee-previous-indent

  • Loading branch information...
1 parent 8a3d6f5 commit f4597a051d823346f67f30e06910efea530aacf0 @typester typester committed with Mar 4, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 coffee-mode.el
View
@@ -469,7 +469,7 @@ For detail, see `comment-dwim'."
(if (bobp)
0
(progn
- (while (coffee-line-empty-p) (forward-line -1))
+ (while (and (coffee-line-empty-p) (not (bobp))) (forward-line -1))
(current-indentation)))))
(defun coffee-line-empty-p ()

0 comments on commit f4597a0

Please sign in to comment.