Permalink
Browse files

fix `haskell-indent-at-point' error if point is at the end of the buffer

  • Loading branch information...
deftsp committed Feb 6, 2013
1 parent f801dd9 commit 576a01d5d11a9aa735fd47885f0233e178b426ab
Showing with 3 additions and 1 deletion.
  1. +3 −1 haskell-mode.el
View
@@ -353,8 +353,10 @@ May return a qualified name."
(save-excursion
;; Skip whitespace if we're on it. That way, if we're at "map ", we'll
;; see the word "map".
- (if (eq ? (char-syntax (char-after)))
+ (if (and (not (eobp))
+ (eq ? (char-syntax (char-after))))
(skip-chars-backward " \t"))
+
(let ((case-fold-search nil))
(multiple-value-bind (start end)
(if (looking-at "\\s_")

0 comments on commit 576a01d

Please sign in to comment.