fix TextEditor initial line number

This commit is contained in:
2025-09-07 17:35:11 +02:00
parent 6fa26b3ddb
commit 754dd8b053

View File

@@ -7,7 +7,7 @@ const textarea = ref<HTMLTextAreaElement>(
null as unknown as HTMLTextAreaElement
);
const currentLine = ref<number>(0);
const currentLine = ref<number>(1);
const totalLines = computed(
() => editor.data?.editedContent.split('\n').length ?? 0
);