Fixed how the name is added to the history in selector/find-file.