Skip to content

Commit

Permalink
Merge pull request mpickering#4 from chrismwendt/set-text-via-diff
Browse files Browse the repository at this point in the history
Apply refactoring changes via diff
  • Loading branch information
mpickering authored Sep 4, 2016
2 parents 7574c01 + 4c6a87e commit e0e9b15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hlint-refactor.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ module.exports = Refactor =
@runCmd(hlintPath,['-'].concat(os),buffer.getText(), "hlint-refact")
.then (res) =>
if res.exitCode == 0
buffer.setText(res.text)
buffer.getBuffer().setTextViaDiff(res.text)
buffer.setCursorBufferPosition(pos)
else
atom.notifications.addError(res.text)

0 comments on commit e0e9b15

Please sign in to comment.