fix bug when no editors are open. fix alert message bug when formatting is attempted in a dotfile