diff --git a/elisp/ghc-flymake.el b/elisp/ghc-flymake.el index d307dc5..66a728c 100644 --- a/elisp/ghc-flymake.el +++ b/elisp/ghc-flymake.el @@ -103,7 +103,7 @@ (when (looking-at "^\\([^ ]+\\) *::") (save-match-data (forward-line) - (if (eobp) (insert "\n"))) + (if (not (bolp)) (insert "\n"))) (insert (match-string 1) " = undefined\n"))) ((string-match "Not in scope: `\\([^']+\\)'" data) (save-match-data