+6

File is marked as dirty even though the file itself is unchanged

Sindre Sorhus 12 years ago updated 12 years ago 1
If I open a file using tab indentation and click the menu option "Convert indentation to Tabs" the file is marked as dirty even though the file didn't change.
Sublime should only mark a file as dirty if it actually changed.

This behavior breaks my plugin which forces a set indentation type.

Build 2210

This also happens when doing other things, like setting the encoding programmatically makes the buffer dirty, even though it didn't change anything...