CotEditor icon indicating copy to clipboard operation
CotEditor copied to clipboard

Unable to close the file without saving it first after converting it

Open denevin opened this issue 7 months ago • 1 comments

Description

When opening a file with inconsistent line endings CotEditor presents an option to either Convert, Review or Ignore them.

If "Convert" option is chosen and then a user tries to close the file from the editor, there is no option to close it without saving it first.

The only available options are "Save Available Text" or "Review Incompatible Characters.

To Reproduce

  1. Open a document with inconsistent line endings, in my case it's a file ending with extension .fid.
  2. CotEditor will display a warning, click on "Convert" button.
Image
  1. Try to close the document and notice it's not possible to close it without saving it first
Image

Expected behavior

No response

CotEditor version

5.1.6

macOS version

Sonoma 15.5

Additional context

No response

denevin avatar May 15 '25 15:05 denevin

Hi, thanks for the feedback.

For the further investigation, could you share me a file that can reproduce this issue? If you’d prefer not to share it here, you can also send it to the email address provided in CotEditor’s Help > “Create Issue Report.”

1024jp avatar May 20 '25 03:05 1024jp

I have encountered the same issue. I have attached a random file that reproduces the dialog in step 4 in the original issue where the dialog does not allow you to Close or Discard. You cannot quit the editor without saving.

cot_example.txt

jsmarble avatar Jun 26 '25 15:06 jsmarble

If you revert the file to "last opened" then you can close the file without saving.

jsmarble avatar Jun 26 '25 15:06 jsmarble

@jsmarble Great! Thank you! I’ll investigate with your file.

1024jp avatar Jun 27 '25 07:06 1024jp

Oops, the fix was still in the middle of the process. I have one more part to go to fix, so I will reopen.

1024jp avatar Jun 27 '25 11:06 1024jp

I believe I’ve fixed this issue in the next version, 5.2.0, currently in prerelease testing. In the next week, I’ll release the stable version.

Image

1024jp avatar Jun 28 '25 06:06 1024jp