Auto Indention Issue

I posted about this before and it is still not fixed. Here’s the issue in two images:

[spoiler]Before pushing enter:

After pushing enter:

[/spoiler]

The else is clearly not positioned correctly after enter is pushed… :angry:

Can you post exact text that will do that behavior? It works fine in that case as far as I can see.

Shouldn’t the else have the same number of intentions as the if?

There is also another annoying thing with adding ends. If you have a function with an end, and you return on the line that has the function, it will add another end.

Example:

Before

function foo() -- RETURN ON THIS LINE print("bar") end

After

function foo() end print("bar") end

[quote] There is also another annoying thing with adding ends. If you have a function with an end, and you return on the line that has the function, it will add another end.

Example:

Before

function foo() -- RETURN ON THIS LINE print("bar") end

After

function foo() end print("bar") end [/quote]

I was unable to repro this.

[quote] There is also another annoying thing with adding ends. If you have a function with an end, and you return on the line that has the function, it will add another end.

Example:

Before

function foo() -- RETURN ON THIS LINE print("bar") end

After

function foo() end print("bar") end [/quote]

Actually I can confirm this.
Maybe not this exact block of code, but it does happen to me a lot in my scripts.

So was I right about my issue? :stuck_out_tongue: