Skip to content

Commit

Permalink
fix #3
Browse files Browse the repository at this point in the history
  • Loading branch information
hax committed Aug 3, 2016
1 parent c71421b commit c9df973
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/elastic-tabstops.js
Expand Up @@ -35,11 +35,6 @@ export function deactivate() {
function observeEditor(editor) {
// console.log('observe editor')

if (editor.getSoftTabs()) {
console.log('Elastic tabstops require hard tabs')
return
}

const editorElement = atom.views.getView(editor)
editorElement.classList.add('elastic-tabstops')

Expand All @@ -48,6 +43,7 @@ function observeEditor(editor) {
c._updateTileNodes = c.updateTileNodes
c.updateTileNodes = function () {
this._updateTileNodes()
if (editor.getSoftTabs()) return
update(this.getDomNode())
}

Expand Down

0 comments on commit c9df973

Please sign in to comment.