commmit after text editor and revert