-
Notifications
You must be signed in to change notification settings - Fork 7.6k
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Quick Editor dirty mark doesn't work #7571
Comments
This is a known issue that we can't fix without changing how the Document model handles multiple editors - see https://trello.com/c/cRAl0YHB/774-2-doc-linking-for-inline-editors. Undo in an inline editor isn't "real" undo yet -- it just makes another edit that happens to cancel out the previous one, so the master undo history has two changes instead of zero, and thus is still "dirty." |
Also, if the editor is changed back to it's original state it will still show the dirty mark. For example: If a file originally has the content "abc", removing the a so the new content is "bc" will mark the file as dirty. Putting back the a so the content again is "abc" does not remove the dirty mark. When the In summary: If CM implements the feature to detect (and mark clean) when a document has been restored to it's original state (by changes or undos), this issue will be resolved automatically. |
That's not really a CM bug. The issue is that we're not using CM linked documents to synchronize the two documents - we're doing our own hack (which we implemented before CM implemented linked docs) that doesn't really do the right thing with undo history and the clean state. So we really need to use the doc linking feature in order to fix this properly. |
And in general editors do not remove the dirty marker if you do a series of edits that just happen to make the text identical to the earlier state. You only want to hide the dirty marker if the undo/redo stack matches the state when last saved. I'd be surprised if you could find editors where the "abc"/"bc" example above actually behaves as suggested... |
Ah okay, my bad. I thought Sublime worked that way but it does indeed not. |
Ctrl+Z
Result: There's still a "dirty mark" (dot before filename)
Expected: No dirty mark
The text was updated successfully, but these errors were encountered: