Files marked as having unsaved changes immediately after opening the editor


Sometimes when I open the editor a file or two is marked as having unsaved changes (shows the dot in the file tab instead of the x to close it). But there aren’t unsaved changes. I can press Ctrl - Z to undo the most recent change from the history of the previous session (it’s pretty awesome that I can undo changes that were made in previous sessions!) and Ctrl - Y to get back to the original state when the editor was opened and the file will no longer be marked as having any changes. Or I can just save the file and check git status to show that no changes were made.