Autosave only on changes

Noticed a bug that the editor will try autosave files even if they
haven't changed. This is a problem for browsing log files on other
servers where we don't have write access but still want to navigate
them.