mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix typo that broke GeneralCodeFormatterTest
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user