1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 10:16:03 +02:00

Follow-up fix for bug 323971 - don't indent inside string

This commit is contained in:
Anton Leherbauer 2010-09-07 09:19:31 +00:00
parent 3c81bdc94b
commit aa18aab4a0

View file

@ -216,7 +216,7 @@ public class IndentAction extends TextEditorAction {
indent= computePreprocessorIndent(document, line, startingPartition);
} else if (startingPartition.getType().equals(ICPartitions.C_STRING) && offset > startingPartition.getOffset()) {
// don't indent inside (raw-)string
indent = ""; //$NON-NLS-1$
return false;
} else if (!fIsTabAction && startingPartition.getOffset() == offset && startingPartition.getType().equals(ICPartitions.C_SINGLE_LINE_COMMENT)) {
// line comment starting at position 0 -> indent inside
if (indentInsideLineComments()) {