Skip to content

Commit

Permalink
Merge pull request #103 from norcalli/patch-1
Browse files Browse the repository at this point in the history
match.line is undefined for full file errors
  • Loading branch information
park9140 committed Jun 18, 2014
2 parents c0d99f0 + 5be677b commit 05b1aba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/linter.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ class Linter
# colStart: column to on which to start a higlight (optional)
# colEnd: column to end highlight (optional)
computeRange: (match) ->
match.line ?= 0 # Assume if no line is found that it denotes a full file error.
rowStart = parseInt(match.lineStart ? match.line) - 1
rowEnd = parseInt(match.lineEnd ? match.line) - 1

Expand Down

0 comments on commit 05b1aba

Please sign in to comment.