fixed: remove useless resize calls
This commit is contained in:
parent
0042c85838
commit
6d0a9e6b1c
4
main.js
4
main.js
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue