LE version: 1.21.0.0 Reproduce step: 1. Open a text file 2. select some lines 3. Ctrl+t or right click to select "copy to new tab" <img width="466" height="332" alt="Image" src="https://github.com/user-attachments/assets/f05559a3-eab7-4dc8-b402-c419d9c0c887" /> and then when close the opened text file, will popup this error message <img width="480" height="236" alt="Image" src="https://github.com/user-attachments/assets/e1fc5993-83df-4cc6-81b5-1919f9988e4c" />