Commit 6a5d81b0 authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

Fixed indenting of else line when typing "} else {"

The line would only get a reduced indent when the user actually typed
the }, but not when typing the {, even though the line should still be
unindented because of the } at the start.

Previously this code worked fine because lines didn't used to get
automatically reindented for anything else than the first character.
parent b450fa17
......@@ -1069,7 +1069,7 @@ int Indenter<Iterator>::indentForBottomLine(const Iterator &current,
indent = indentForStandaloneLine();
}
if ( okay(typedIn, closingBrace) && firstCh == closingBrace ) {
if ( firstCh == closingBrace ) {
/*
A closing brace is one level more to the left than the
code it follows.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment