From a8c329c95e59d8be1b3847ad4d65a46d99e6422a Mon Sep 17 00:00:00 2001 From: Jos de Jong Date: Wed, 27 Nov 2024 15:51:13 +0100 Subject: [PATCH] fix: no history being created when clicking action buttons such as format and compact --- src/lib/components/modes/textmode/TextMode.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/components/modes/textmode/TextMode.svelte b/src/lib/components/modes/textmode/TextMode.svelte index b662bd40..141cf320 100644 --- a/src/lib/components/modes/textmode/TextMode.svelte +++ b/src/lib/components/modes/textmode/TextMode.svelte @@ -820,6 +820,8 @@ }) } + addHistoryItem() + if (isChanged && emitChange) { emitOnChange(content, previousContent) }