mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 18:26:01 +02:00
Follow-up fix for bug 323971 - don't indent inside string
This commit is contained in:
parent
3c81bdc94b
commit
aa18aab4a0
1 changed files with 1 additions and 1 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue