Opened 10 years ago

Closed 8 years ago

#451 closed defect (wontfix)

does not prompt to save document if diff is whitespace only

Reported by: daxim Owned by:
Priority: major Milestone:
Component: editor Version: trunk
Keywords: Cc:


  1. Create a new document.
  2. Type some spaces, tabs, newlines.
  3. Type some alphabetic characters and delete them again.
  4. Close the document.

What should happen:
Prompts to save changes.

What actually happens:
Closes document without saving changes.

Change History (2)

comment:1 Changed 10 years ago by adamk

This was an intentional feature, intended to avoid useless "do you want to save this useless document" prompts.

I'm not sure of any cases in which saving a file with a couple of spaces in it is intended. If there are genuine use cases for this, perhaps we can tune it to only not prompt in very simple short cases, while still prompting for larger cases.

comment:2 Changed 8 years ago by adamk

  • Resolution set to wontfix
  • Status changed from new to closed

To restate, the whitespace thing is ONLY the case when it is a new document and has no non-whitespace at all. Whitespace changes are asked about if there is any content.

Closing as won't fix

Note: See TracTickets for help on using tickets.