fix patch editing of gists