From 63056546b24815ec04f90ffaa1064a222ce84c3f Mon Sep 17 00:00:00 2001 From: singerdmx Date: Sun, 20 Dec 2020 22:42:21 -0800 Subject: [PATCH] Fix replace method --- lib/models/documents/document.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/models/documents/document.dart b/lib/models/documents/document.dart index 1d7da881..235fc8da 100644 --- a/lib/models/documents/document.dart +++ b/lib/models/documents/document.dart @@ -74,7 +74,7 @@ class Document { Delta delta = Delta(); if (dataIsNotEmpty) { - delta = insert(index + length, data); + delta = insert(index + len, data); } if (len > 0) {