Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't force reindenting to indent past the first column

Based on this conversation:
sublimehq@ed9ccff#commitcomment-981083
  • Loading branch information...
commit a4692c483fc23ecb9937759a07a6cc312031ad3e 1 parent 75318ee
@misfo authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  Default.sublime-keymap
  2. +2 −2 vintage.py
View
2  Default.sublime-keymap
@@ -364,7 +364,7 @@
"context": [{"key": "setting.command_mode"}]
},
- { "keys": ["="], "command": "set_action", "args": {"action": "reindent", "description": "Reindent"},
+ { "keys": ["="], "command": "set_action", "args": {"action": "reindent", "description": "Reindent", "action_args": {"force_indent": false}},
"context": [{"key": "setting.command_mode"}]
},
View
4 vintage.py
@@ -611,7 +611,7 @@ def run(self, edit, action_command, action_args,
# Apply the action to the selection
self.view.run_command(action_command, action_args)
if reindent and self.view.settings().get('auto_indent'):
- self.view.run_command('reindent')
+ self.view.run_command('reindent', {'force_indent': False})
if not visual_mode:
# Shrink the selection down to a point
@@ -920,7 +920,7 @@ def run(self, edit, character):
self.view.sel().add(s)
if created_new_line and self.view.settings().get('auto_indent'):
- self.view.run_command('reindent')
+ self.view.run_command('reindent', {'force_indent': False})
class CenterOnCursor(sublime_plugin.TextCommand):
def run(self, edit):
Please sign in to comment.
Something went wrong with that request. Please try again.