Hi, first question in this forum. How come ST shows an unmodified file as modified? Is there a way to change that behavior? If I open an arbitrary file and add a character on a row, then backspace, the file is not modified, but ST tells me it is. I’m running build 4200
ST shows unmodified file as modified
bschaaf
#2
Sublime Text only uses the state of the undo/redo buffer to determine if a file needs saving. Undoing your insertion instead of using backspace will result in the file being marked as modified.
Theoretically we could use incremental diffing or some other approach to track if the file is the same as it was when it was last saved, but this would be very slow for large files.
0 Likes
boeric
#3
Thanks very much for explaining. Computing a file signature after every editor key stroke would be expensive with a large file. But perhaps it could be done in the background every x seconds. Anyway, thanks for your answer, much appreciated
0 Likes