Open aj2jewellers opened 12 years ago
I found a work-around by creating a new setting with { disableIndentCorrections = '1'; } Would be useful to have this included as a default if we can't have indentation rules working.
I can confirm both the bug and the workaround suggested by @aj2jewellers. However disabling all indent corrections seems a bit overkill. I'm using TextMate 2.0 (9307). Some of my bundles are:
My bundles are automatically updated.
I added "disableIndentCorrections" with a value of 1 to the Variables tab in Preferences. It solves part of the problem. When editing an existing line it no longer destroys the indentation. However when I start a new line, press tab and start typing, it does still remove the indentation.
Update: actually it still misbehaves some of the time. I can't really find the pattern here.
I'm seeing the same behavior in other bundles, e.g. Ruby. Perhaps it's a bug in TextMate?
When I start editing a line that was indented the indentation is removed. It doesn't happen with Textmate 1 just version 2. I'm running build 9147 on OS 10.8