Add "indent blocks twice" option for GNU indenting

Reviewed-by: mae
Merge-request: 133
This commit is contained in:
Alexey Semenko
2010-04-01 04:25:32 +04:00
committed by mae
parent 0fd5e4e9c4
commit 538921e8dc
7 changed files with 58 additions and 7 deletions

View File

@@ -1669,6 +1669,7 @@ static void indentCPPBlock(const CPPEditor::TabSettings &ts,
indenter.setIndentSize(ts.m_indentSize);
indenter.setTabSize(ts.m_tabSize);
indenter.setIndentBraces(ts.m_indentBraces);
indenter.setDoubleIndentBlocks(ts.m_doubleIndentBlocks);
const TextEditor::TextBlockIterator current(block);
const int indent = indenter.indentForBottomLine(current, programBegin, programEnd, typedChar);