fix for renaming file selection deleting unsaved editor file contents