From 69a1a6159cd30083e6748cea86d72048c2e79c49 Mon Sep 17 00:00:00 2001 From: "Flora (opencode)" Date: Mon, 17 Aug 2026 18:34:12 +0300 Subject: [PATCH] =?UTF-8?q?Fix:=20loadContent=20=E2=80=94=20=D0=BF=D1=80?= =?UTF-8?q?=D0=B8=D0=BD=D1=83=D0=B4=D0=B8=D1=82=D0=B5=D0=BB=D1=8C=D0=BD?= =?UTF-8?q?=D0=BE=D0=B5=20=D0=BE=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20TextArea=20(=D0=BE=D1=87=D0=B8=D1=81=D1=82=D0=BA?= =?UTF-8?q?=D0=B0=20+=20=D1=83=D1=81=D1=82=D0=B0=D0=BD=D0=BE=D0=B2=D0=BA?= =?UTF-8?q?=D0=B0=20+=20cursorPosition);=20=D1=83=D0=B1=D1=80=D0=B0=D0=BD?= =?UTF-8?q?=20debug-=D0=BA=D0=BE=D0=BD=D1=81=D0=BE=D0=BB=D1=8C=20=D0=B8?= =?UTF-8?q?=D0=B7=20loadContent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qml/panels/EditorPane.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qml/panels/EditorPane.qml b/qml/panels/EditorPane.qml index 3e4f814..f48283e 100644 --- a/qml/panels/EditorPane.qml +++ b/qml/panels/EditorPane.qml @@ -266,13 +266,13 @@ Item { // ---------- Просмотр (режим просмотра) ---------- function loadContent() { - console.log("loadContent called: docIndex=" + pane.docIndex + " editMode=" + pane.editMode) if (pane.docIndex >= 0) { const c = documentManager.contentAt(pane.docIndex) - console.log("loadContent content=" + c.substring(0, 50) + "...") + // Принудительное обновление TextArea: сначала очищаем, затем ставим контент + editor.text = "" editor.text = c + editor.cursorPosition = c.length pane.editorContent = c - console.log("loadContent editor.text.length=" + editor.text.length) } else { editor.text = "" pane.editorContent = ""