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

Commit

Permalink
Revert "Merge pull request #853 from yacut/restore-cursor-position-af…
Browse files Browse the repository at this point in the history
…ter-fix"

This reverts commit 27d5570.
  • Loading branch information
Arcanemagus committed May 19, 2017
1 parent f2ee2e6 commit d4a1a11
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 @@ -234,9 +234,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 @@ -256,8 +253,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 d4a1a11

Please sign in to comment.