Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Commit

Permalink
Merge pull request #876 from AtomLinter/arcanemagus/revert-853
Browse files Browse the repository at this point in the history
Revert #853
  • Loading branch information
Arcanemagus authored May 22, 2017
2 parents bb5321b + d4a1a11 commit d23a738
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,6 @@ module.exports = {
rules = ignoredRulesWhenFixing
}

// The fix replaces the file content and the cursor jumps automatically
// to the beginning of the file, so save current cursor position
const cursorPosition = textEditor.getCursorBufferPosition()
if (!helpers) {
helpers = require('./helpers')
}
Expand All @@ -262,8 +259,6 @@ module.exports = {
if (!isSave) {
atom.notifications.addSuccess(response)
}
// Set cursor to the position before fix job
textEditor.setCursorBufferPosition(cursorPosition)
} catch (err) {
atom.notifications.addWarning(err.message)
}
Expand Down

0 comments on commit d23a738

Please sign in to comment.