Skip to content

Commit

Permalink
Merge pull request #79 from AtomLinter/fix-double-message-statusbar
Browse files Browse the repository at this point in the history
Fix double message statusbar
  • Loading branch information
Maxime Tyler committed Jun 2, 2014
2 parents 3bcf3ef + 6b7be0d commit 26f6647
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/linter-view.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ class LinterView
@subscriptions.push @editorView.on 'cursor:moved', =>
@displayStatusBar()

@lint()

# Public: Initialize new linters (used on grammar chagne)
#
# linters - global linter set to utilize for linting
Expand Down Expand Up @@ -107,7 +105,7 @@ class LinterView
buffer = @editor.getBuffer()

@subscriptions.push buffer.on 'reloaded saved', (buffer) =>
@lint() if @lintOnSave
@debouncedLint() if @lintOnSave

@subscriptions.push buffer.on 'destroyed', ->
buffer.off 'reloaded saved'
Expand Down

0 comments on commit 26f6647

Please sign in to comment.