mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Don't let JavaRearranger break a color scheme by altering original text attributes.
This commit is contained in:
@@ -456,7 +456,7 @@ public class JavaRearranger implements Rearranger<JavaElementArrangementEntry>,
|
||||
private static TextAttributes getAttributes(@NotNull EditorColorsScheme scheme, @NotNull TextAttributesKey ... keys) {
|
||||
TextAttributes result = null;
|
||||
for (TextAttributesKey key : keys) {
|
||||
TextAttributes attributes = scheme.getAttributes(key);
|
||||
TextAttributes attributes = scheme.getAttributes(key).clone();
|
||||
if (attributes == null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user