fixed bug where pressing esc would always save snippet no matter if it had been edited
merge corrections