A segfault occurs when opening the editor, then closing. https://github.com/user-attachments/assets/e671a0ea-35bb-495c-8094-6e98f4751dee