QmlJS indenter: Only auto-reindent if indent was unchanged.
This change in how electric characters are handled has gone into the C++ indenter a while ago and works well there. It means Creator is less likely to annoyingly change the indent on lines where the indentation whas changed manually. It is still possible to trigger a reindent manually. Reviewed-by: Erik Verbruggen
Showing
- src/libs/qmljs/qmljscodeformatter.cpp 12 additions, 0 deletionssrc/libs/qmljs/qmljscodeformatter.cpp
- src/libs/qmljs/qmljscodeformatter.h 1 addition, 0 deletionssrc/libs/qmljs/qmljscodeformatter.h
- src/plugins/qmljseditor/qmljsindenter.cpp 9 additions, 1 deletionsrc/plugins/qmljseditor/qmljsindenter.cpp
Loading
Please register or sign in to comment