fix typo that broke GeneralCodeFormatterTest

This commit is contained in:
Dmitry Jemerov
2013-11-13 12:07:14 +01:00
parent ca13b82c4e
commit a4e4ceb386
@@ -388,7 +388,7 @@ class FormatProcessor {
final String newWhiteSpace = _newWhiteSpace.toString();
TextRange newWhiteSpaceRange = model instanceof FormattingModelEx
? ((FormattingModelEx) model).replaceWhiteSpace(wsRange, block.getNode(), newWhiteSpace)
: model.replaceWhiteSpace(textRange, newWhiteSpace);
: model.replaceWhiteSpace(wsRange, newWhiteSpace);
shift += newWhiteSpaceRange.getLength() - textRange.getLength();