Rename notInlineStyle to ignoredStyles

pull/1374/head
EgorK0rshun 2 years ago
parent 1fc32244dc
commit a0a5cbadec
  1. 4
      lib/src/widgets/controller.dart

@ -400,10 +400,10 @@ class QuillController extends ChangeNotifier {
extentOffset: math.min(selection.extentOffset, end)); extentOffset: math.min(selection.extentOffset, end));
if (_keepStyleOnNewLine) { if (_keepStyleOnNewLine) {
final style = getSelectionStyle(); final style = getSelectionStyle();
final notInlineStyle = style.attributes.values.where( final ignoredStyles = style.attributes.values.where(
(s) => !s.isInline || s.key == Attribute.link.key, (s) => !s.isInline || s.key == Attribute.link.key,
); );
toggledStyle = style.removeAll(notInlineStyle.toSet()); toggledStyle = style.removeAll(ignoredStyles.toSet());
} else { } else {
toggledStyle = Style(); toggledStyle = Style();
} }

Loading…
Cancel
Save