Merge branch 'master' of git@git.labs.intellij.net:idea/community

This commit is contained in:
Kirill Kalishev
2009-11-12 18:59:03 +03:00
10 changed files with 82 additions and 63 deletions
@@ -41,7 +41,8 @@ public class StringLiteralManipulator extends AbstractElementManipulator<PsiLite
}
public static TextRange getValueRange(PsiLiteralExpression element) {
if (!(element.getValue() instanceof String)) return TextRange.from(0, element.getTextLength());
final Object value = element.getValue();
if (!(value instanceof String || value instanceof Character)) return TextRange.from(0, element.getTextLength());
return new TextRange(1, Math.max(1, element.getTextLength() - 1));
}
}