only save if you were editing, hopefully addresses #22