{"action":"created","issue":{"url":"https://api.github.com/repos/dhowe/RiTa/issues/169","labels_url":"https://api.github.com/repos/dhowe/RiTa/issues/169/labels{/name}","comments_url":"https://api.github.com/repos/dhowe/RiTa/issues/169/comments","events_url":"https://api.github.com/repos/dhowe/RiTa/issues/169/events","html_url":"https://github.com/dhowe/RiTa/issues/169","id":98456809,"number":169,"title":"RiTa.kwic() returns incorrect string when target word appears more than once during wordCount","user":{"login":"CyrusSUEN","id":2461812,"avatar_url":"https://avatars.githubusercontent.com/u/2461812?v=3","gravatar_id":"","url":"https://api.github.com/users/CyrusSUEN","html_url":"https://github.com/CyrusSUEN","followers_url":"https://api.github.com/users/CyrusSUEN/followers","following_url":"https://api.github.com/users/CyrusSUEN/following{/other_user}","gists_url":"https://api.github.com/users/CyrusSUEN/gists{/gist_id}","starred_url":"https://api.github.com/users/CyrusSUEN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CyrusSUEN/subscriptions","organizations_url":"https://api.github.com/users/CyrusSUEN/orgs","repos_url":"https://api.github.com/users/CyrusSUEN/repos","events_url":"https://api.github.com/users/CyrusSUEN/events{/privacy}","received_events_url":"https://api.github.com/users/CyrusSUEN/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dhowe/RiTa/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-31T19:35:09Z","updated_at":"2015-09-09T11:24:24Z","closed_at":null,"body":"To reproduce, set the RiTaJS canvas width to 4000px in the example of KWIKmodel (p5js) or the DIV height to 4000px in KWIKmodel (dom) and then search for the word 'door'.\r\nHere is the result:\r\n![1](https://cloud.githubusercontent.com/assets/2461812/9015581/7ab7c2e0-37fc-11e5-96fb-acb3dadfce15.png)\r\n\r\nThe original text from Line 1879 and 1880 of kafka.txt:\r\n```\r\nimmediate notice.\"  With that, he took hold of the door\r\nhandle and slammed the door.\r\n```\r\n\r\nIf I set the wordCount to 4 in opts, it looks correct:\r\n![2](https://cloud.githubusercontent.com/assets/2461812/9015746/9b83df6c-37fd-11e5-92b3-83d9dbd9e827.png)\r\n\r\nIs this a bug or am I misusing kwic()?"},"comment":{"url":"https://api.github.com/repos/dhowe/RiTa/issues/comments/138880237","html_url":"https://github.com/dhowe/RiTa/issues/169#issuecomment-138880237","issue_url":"https://api.github.com/repos/dhowe/RiTa/issues/169","id":138880237,"user":{"login":"dhowe","id":737638,"avatar_url":"https://avatars.githubusercontent.com/u/737638?v=3","gravatar_id":"","url":"https://api.github.com/users/dhowe","html_url":"https://github.com/dhowe","followers_url":"https://api.github.com/users/dhowe/followers","following_url":"https://api.github.com/users/dhowe/following{/other_user}","gists_url":"https://api.github.com/users/dhowe/gists{/gist_id}","starred_url":"https://api.github.com/users/dhowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhowe/subscriptions","organizations_url":"https://api.github.com/users/dhowe/orgs","repos_url":"https://api.github.com/users/dhowe/repos","events_url":"https://api.github.com/users/dhowe/events{/privacy}","received_events_url":"https://api.github.com/users/dhowe/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T11:24:24Z","updated_at":"2015-09-09T11:24:24Z","body":"Appears to be a bug, please investigate..."}}