{"action":"created","issue":{"url":"https://api.github.com/repos/c-bata/go-prompt/issues/110","repository_url":"https://api.github.com/repos/c-bata/go-prompt","labels_url":"https://api.github.com/repos/c-bata/go-prompt/issues/110/labels{/name}","comments_url":"https://api.github.com/repos/c-bata/go-prompt/issues/110/comments","events_url":"https://api.github.com/repos/c-bata/go-prompt/issues/110/events","html_url":"https://github.com/c-bata/go-prompt/issues/110","id":374363757,"node_id":"MDU6SXNzdWUzNzQzNjM3NTc=","number":110,"title":"panic: runtime error: slice bounds out of range","user":{"login":"shreyas165","id":26136025,"node_id":"MDQ6VXNlcjI2MTM2MDI1","avatar_url":"https://avatars3.githubusercontent.com/u/26136025?v=4","gravatar_id":"","url":"https://api.github.com/users/shreyas165","html_url":"https://github.com/shreyas165","followers_url":"https://api.github.com/users/shreyas165/followers","following_url":"https://api.github.com/users/shreyas165/following{/other_user}","gists_url":"https://api.github.com/users/shreyas165/gists{/gist_id}","starred_url":"https://api.github.com/users/shreyas165/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shreyas165/subscriptions","organizations_url":"https://api.github.com/users/shreyas165/orgs","repos_url":"https://api.github.com/users/shreyas165/repos","events_url":"https://api.github.com/users/shreyas165/events{/privacy}","received_events_url":"https://api.github.com/users/shreyas165/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-26T12:34:39Z","updated_at":"2018-10-27T16:53:16Z","closed_at":null,"author_association":"NONE","body":"https://github.com/c-bata/go-prompt/blob/63e3a6f38aca443ea14c57bf6cde497a6ebd4062/buffer.go#L52\r\n\r\npanic: runtime error: slice bounds out of range [recovered]\r\n\tpanic: runtime error: slice bounds out of range\r\n\r\ngoroutine 6 [running]:\r\ntesting.tRunner.func1(0xc0000aa300)\r\n\t/usr/local/go/src/testing/testing.go:792 +0x387\r\npanic(0x111bb00, 0x122e800)\r\n\t/usr/local/go/src/runtime/panic.go:513 +0x1b9\r\ngithub.com/c-bata/go-prompt.(*Buffer).InsertText(0xc000040760, 0x11417e9, 0x3, 0x1050101)\r\n\tvendor/github.com/c-bata/go-prompt/buffer.go:52 +0x43d\r\n\r\n\r\nsample code used : \r\n\r\nfunc TestCLIPrompt_Completer(t *testing.T) {\r\n\tbuffer := goPrompt.NewBuffer()\r\n\tbuffer.InsertText(\"one\", true, true) // this results in the panic\r\n\tfmt.Println(buffer.Document())\r\n\tbuffer.CursorRight(2)\r\n\tfmt.Println(buffer.Document())\r\n}\r\n"},"comment":{"url":"https://api.github.com/repos/c-bata/go-prompt/issues/comments/433636830","html_url":"https://github.com/c-bata/go-prompt/issues/110#issuecomment-433636830","issue_url":"https://api.github.com/repos/c-bata/go-prompt/issues/110","id":433636830,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzYzNjgzMA==","user":{"login":"c-bata","id":5564044,"node_id":"MDQ6VXNlcjU1NjQwNDQ=","avatar_url":"https://avatars3.githubusercontent.com/u/5564044?v=4","gravatar_id":"","url":"https://api.github.com/users/c-bata","html_url":"https://github.com/c-bata","followers_url":"https://api.github.com/users/c-bata/followers","following_url":"https://api.github.com/users/c-bata/following{/other_user}","gists_url":"https://api.github.com/users/c-bata/gists{/gist_id}","starred_url":"https://api.github.com/users/c-bata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c-bata/subscriptions","organizations_url":"https://api.github.com/users/c-bata/orgs","repos_url":"https://api.github.com/users/c-bata/repos","events_url":"https://api.github.com/users/c-bata/events{/privacy}","received_events_url":"https://api.github.com/users/c-bata/received_events","type":"User","site_admin":false},"created_at":"2018-10-27T16:53:16Z","updated_at":"2018-10-27T16:53:16Z","author_association":"OWNER","body":"Thanks. Could you rewrite the issue description in following format?\r\nhttps://github.com/c-bata/go-prompt/blob/master/.github/ISSUE_TEMPLATE.md"}}
{"actor":{"display_login":"c-bata"}}