coffee-script-tmbundle icon indicating copy to clipboard operation
coffee-script-tmbundle copied to clipboard

Wrong indent on subsequent wrapped lines in Sublime Text 2

Open tad-lispy opened this issue 12 years ago • 3 comments

Hello!

In ST2 subsequent lines of wrapped prose as well as code are indented more then first line when indent_subsequent_lines is set to true. If it's set to false, they are indented by "one tab". It doesn't matter if indentation is set to tabs or spaces. Take a look:

false_indent_subsequent_lines

true_indent_subsequent_lines

tad-lispy avatar Apr 06 '13 20:04 tad-lispy

Yes -- I noticed this as well. How do we fix it?

jashkenas avatar Apr 07 '13 03:04 jashkenas

It seems they are always indented one extra level. If you change indentation size, subsequent lines will be pushed to the right by that size.

After some research I see it's a more general ST2 problem. Many syntaxes are affected, among them Coffescript syntax from @Xavura as well as your's literate and "illiterate". So are most "code" syntaxes (C, Python, YAML etc.). The ones that work as expected are XML, HTML, plain text and literate haskell. The last one is interesting, because "illiterate" haskel doesn't work.

So I guess there must be some setting for this that must be explicitly set.

tad-lispy avatar Apr 07 '13 08:04 tad-lispy

I've just noticed that wrapped comments are indented correctly. Take a look at line 21 with and without comment.

comment

no-comment

tad-lispy avatar Apr 07 '13 20:04 tad-lispy