Changed so saving an edit will only be attempted once upon pressing enter.