fix(editor): Fix code node highlight error (#6791)

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
This commit is contained in:
OlegIvaniv 2023-07-28 18:31:57 +02:00 committed by GitHub
parent 6fb8a9ee39
commit 50b0dc21fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -166,7 +166,7 @@ export default defineComponent({
if (lineNumber === 'final') {
this.editor.dispatch({
selection: { anchor: this.content.length },
selection: { anchor: (this.modelValue ?? this.content).length },
});
return;
}