From cc98b9bddf7f033f8e77d95a74240f82f21c6753 Mon Sep 17 00:00:00 2001 From: pipisebastian Date: Wed, 4 Dec 2024 01:41:07 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EB=A6=B0=ED=8A=B8=20=EC=97=90?= =?UTF-8?q?=EB=9F=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #278 --- client/src/features/editor/Editor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/features/editor/Editor.tsx b/client/src/features/editor/Editor.tsx index 06a4c7d..d2a5c60 100644 --- a/client/src/features/editor/Editor.tsx +++ b/client/src/features/editor/Editor.tsx @@ -241,7 +241,7 @@ export const Editor = ({ onTitleChange, pageId, pageTitle, serializedEditorData block.crdt.localInsert(currentPosition + 1, "", block.id, pageId); } - currentPosition++; + currentPosition += 1; }); block.crdt.currentCaret = currentCaret + characters.length;