fixed: remove useless resize calls

This commit is contained in:
quenousimporte 2023-12-20 08:39:41 +01:00
parent 0042c85838
commit 6d0a9e6b1c
1 changed files with 2 additions and 2 deletions

View File

@ -328,6 +328,7 @@ function seteditorcontent(content, silent)
{ {
datachanged(); datachanged();
} }
resize();
} }
function encryptstring(str) function encryptstring(str)
@ -2158,12 +2159,11 @@ function editorinput()
var multiline = md.value.substring(md.selectionStart, md.selectionEnd).includes("\n"); var multiline = md.value.substring(md.selectionStart, md.selectionEnd).includes("\n");
applycolors(!multiline && event.data && (event.inputType == "insertText" || event.inputType == "deleteContentBackward" || event.inputType == "deleteContentForward")); applycolors(!multiline && event.data && (event.inputType == "insertText" || event.inputType == "deleteContentBackward" || event.inputType == "deleteContentForward"));
datachanged(); datachanged();
resize();
} }
function datachanged() function datachanged()
{ {
resize();
saved = false; saved = false;
unsavedmark.hidden = !settings.sync; unsavedmark.hidden = !settings.sync;