text editor warns before losing changes.