Skip to content
This repository was archived by the owner on Oct 5, 2022. It is now read-only.

Commit 2285f02

Browse files
committed
Merge pull request #45 from LukaHorvat/master
Fix handling of various newlines in util-ghc-mod
2 parents 13ea768 + c70a305 commit 2285f02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/util-ghc-mod.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ run = ({onMessage, onComplete, onFailure, cmd, args, cwd}) ->
2929
onFailure?()
3030

3131
stdout = (onMessage, line) ->
32-
line.split('\n').filter((l)->0 != l.length).map onMessage
32+
line.split(/\r?\n|\r/).filter((l)->0 != l.length).map onMessage
3333

3434

3535
# ghc-mod check

0 commit comments

Comments
 (0)