{"action":"created","issue":{"url":"https://api.github.com/repos/scopatz/xonsh/issues/608","labels_url":"https://api.github.com/repos/scopatz/xonsh/issues/608/labels{/name}","comments_url":"https://api.github.com/repos/scopatz/xonsh/issues/608/comments","events_url":"https://api.github.com/repos/scopatz/xonsh/issues/608/events","html_url":"https://github.com/scopatz/xonsh/pull/608","id":125486941,"number":608,"title":"fix buffer reset in ptk history","user":{"login":"gforsyth","id":3596999,"avatar_url":"https://avatars.githubusercontent.com/u/3596999?v=3","gravatar_id":"","url":"https://api.github.com/users/gforsyth","html_url":"https://github.com/gforsyth","followers_url":"https://api.github.com/users/gforsyth/followers","following_url":"https://api.github.com/users/gforsyth/following{/other_user}","gists_url":"https://api.github.com/users/gforsyth/gists{/gist_id}","starred_url":"https://api.github.com/users/gforsyth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gforsyth/subscriptions","organizations_url":"https://api.github.com/users/gforsyth/orgs","repos_url":"https://api.github.com/users/gforsyth/repos","events_url":"https://api.github.com/users/gforsyth/events{/privacy}","received_events_url":"https://api.github.com/users/gforsyth/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/scopatz/xonsh/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/scopatz/xonsh/milestones/2","html_url":"https://github.com/scopatz/xonsh/milestones/v0.3","labels_url":"https://api.github.com/repos/scopatz/xonsh/milestones/2/labels","id":1302567,"number":2,"title":"v0.3","description":"","creator":{"login":"scopatz","id":320553,"avatar_url":"https://avatars.githubusercontent.com/u/320553?v=3","gravatar_id":"","url":"https://api.github.com/users/scopatz","html_url":"https://github.com/scopatz","followers_url":"https://api.github.com/users/scopatz/followers","following_url":"https://api.github.com/users/scopatz/following{/other_user}","gists_url":"https://api.github.com/users/scopatz/gists{/gist_id}","starred_url":"https://api.github.com/users/scopatz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scopatz/subscriptions","organizations_url":"https://api.github.com/users/scopatz/orgs","repos_url":"https://api.github.com/users/scopatz/repos","events_url":"https://api.github.com/users/scopatz/events{/privacy}","received_events_url":"https://api.github.com/users/scopatz/received_events","type":"User","site_admin":false},"open_issues":97,"closed_issues":153,"state":"open","created_at":"2015-09-12T18:28:59Z","updated_at":"2016-01-07T23:38:57Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-01-07T21:21:05Z","updated_at":"2016-01-08T23:20:36Z","closed_at":"2016-01-07T21:55:28Z","pull_request":{"url":"https://api.github.com/repos/scopatz/xonsh/pulls/608","html_url":"https://github.com/scopatz/xonsh/pull/608","diff_url":"https://github.com/scopatz/xonsh/pull/608.diff","patch_url":"https://github.com/scopatz/xonsh/pull/608.patch"},"body":"If this is only `buf.reset()`, it's possible to begin entering text in a\r\nnew terminal window which is then cleared shortly after startup\r\n(depending, I imagine, on how much history is being loaded and how long\r\nthat takes).  Passing in the current document as `initial_document`\r\nfixes this and history is still accessible as before."},"comment":{"url":"https://api.github.com/repos/scopatz/xonsh/issues/comments/170154625","html_url":"https://github.com/scopatz/xonsh/pull/608#issuecomment-170154625","issue_url":"https://api.github.com/repos/scopatz/xonsh/issues/608","id":170154625,"user":{"login":"adqm","id":549404,"avatar_url":"https://avatars.githubusercontent.com/u/549404?v=3","gravatar_id":"","url":"https://api.github.com/users/adqm","html_url":"https://github.com/adqm","followers_url":"https://api.github.com/users/adqm/followers","following_url":"https://api.github.com/users/adqm/following{/other_user}","gists_url":"https://api.github.com/users/adqm/gists{/gist_id}","starred_url":"https://api.github.com/users/adqm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adqm/subscriptions","organizations_url":"https://api.github.com/users/adqm/orgs","repos_url":"https://api.github.com/users/adqm/repos","events_url":"https://api.github.com/users/adqm/events{/privacy}","received_events_url":"https://api.github.com/users/adqm/received_events","type":"User","site_admin":false},"created_at":"2016-01-08T23:20:36Z","updated_at":"2016-01-08T23:20:36Z","body":"Fantastic!  This was driving me crazy :)"}}