Skip to content

Commit

Permalink
Merge pull request #3 from alfredbez/master
Browse files Browse the repository at this point in the history
wasn't working in ST3
  • Loading branch information
bubenkoff committed Jul 2, 2014
2 parents 089dc44 + 7a2f63c commit d696f18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ExpandTabsOnSave.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ def on_pre_save(self, view):
"""Run ST's 'expand_tabs' command when saving a file."""
if view.settings().get('convert_tabspaces_on_save') == 1:
if view.settings().get('translate_tabs_to_spaces') == 1:
view.window().run_command('expand_tabs')
view.run_command('expand_tabs')
else:
view.window().run_command('unexpand_tabs')
view.run_command('unexpand_tabs')


0 comments on commit d696f18

Please sign in to comment.