From 3b0225a493f1d4e99843b736f956a83ec7a116bc Mon Sep 17 00:00:00 2001 From: singerdmx Date: Sat, 19 Dec 2020 23:45:26 -0800 Subject: [PATCH] Update AutoExitBlockRule --- 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 cab7bcca..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, {}); + // retain(1) should be '\n', set it with no attribute (default to null) + return Delta()..retain(index)..retain(1); } }