From 607e5ded44d9f41c5270a444cef0fbd7e056f5d1 Mon Sep 17 00:00:00 2001 From: singerdmx Date: Sat, 19 Dec 2020 14:15:37 -0800 Subject: [PATCH] Small refactor --- lib/models/rules/insert.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/models/rules/insert.dart b/lib/models/rules/insert.dart index debaf71b..557277db 100644 --- a/lib/models/rules/insert.dart +++ b/lib/models/rules/insert.dart @@ -155,8 +155,8 @@ class AutoExitBlockRule extends InsertRule { return null; } - // retain(1) should be '\n', set it with no attribute - return Delta()..retain(index)..retain(1, null); + // retain(1) should be '\n', set it with no attribute (default to null) + return Delta()..retain(index)..retain(1); } }