diff --git a/src/renderer/components/editor/EditorCodemirror.vue b/src/renderer/components/editor/EditorCodemirror.vue index 8729e80e..52118118 100644 --- a/src/renderer/components/editor/EditorCodemirror.vue +++ b/src/renderer/components/editor/EditorCodemirror.vue @@ -339,6 +339,10 @@ emitter.on('snippet:format', () => format()) onMounted(() => { init() + + window.addEventListener('resize', () => { + forceRefresh.value = Math.random() + }) }) onUnmounted(() => {