{"action":"opened","issue":{"url":"https://api.github.com/repos/andy5995/rmw/issues/29","repository_url":"https://api.github.com/repos/andy5995/rmw","labels_url":"https://api.github.com/repos/andy5995/rmw/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/andy5995/rmw/issues/29/comments","events_url":"https://api.github.com/repos/andy5995/rmw/issues/29/events","html_url":"https://github.com/andy5995/rmw/issues/29","id":176154650,"number":29,"title":"last entries in undofile get erased","user":{"login":"andy5995","id":16764864,"avatar_url":"https://avatars.githubusercontent.com/u/16764864?v=3","gravatar_id":"","url":"https://api.github.com/users/andy5995","html_url":"https://github.com/andy5995","followers_url":"https://api.github.com/users/andy5995/followers","following_url":"https://api.github.com/users/andy5995/following{/other_user}","gists_url":"https://api.github.com/users/andy5995/gists{/gist_id}","starred_url":"https://api.github.com/users/andy5995/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andy5995/subscriptions","organizations_url":"https://api.github.com/users/andy5995/orgs","repos_url":"https://api.github.com/users/andy5995/repos","events_url":"https://api.github.com/users/andy5995/events{/privacy}","received_events_url":"https://api.github.com/users/andy5995/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-10T03:51:37Z","updated_at":"2016-09-10T03:51:37Z","closed_at":null,"body":"How to reproduce:\r\n\r\n1. rmw a file\r\n2. `rmw <a file that doesn't exist>`\r\n3. `rmw -u`\r\n\r\nrmw will exit and display no messages.\r\n\r\nThis happens because in main() the undo file is opened for writing, but if rmw is given files that don't exist as arguments, the undo file is simple closed after the loop - in effect, erasing anything that was there previously (normal behavior for fopen()).\r\n\r\n"}}
{"actor":{"display_login":"andy5995"}}