From 6d0a9e6b1cf630b9ebc52c49a00eaa8536a43918 Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Wed, 20 Dec 2023 08:39:41 +0100 Subject: [PATCH] fixed: remove useless resize calls --- main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 4d97099..586ddd6 100644 --- a/main.js +++ b/main.js @@ -328,6 +328,7 @@ function seteditorcontent(content, silent) { datachanged(); } + resize(); } function encryptstring(str) @@ -2158,12 +2159,11 @@ function editorinput() var multiline = md.value.substring(md.selectionStart, md.selectionEnd).includes("\n"); applycolors(!multiline && event.data && (event.inputType == "insertText" || event.inputType == "deleteContentBackward" || event.inputType == "deleteContentForward")); datachanged(); + resize(); } function datachanged() { - resize(); - saved = false; unsavedmark.hidden = !settings.sync;