{"action":"created","issue":{"url":"https://api.github.com/repos/chjj/term.js/issues/84","labels_url":"https://api.github.com/repos/chjj/term.js/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/chjj/term.js/issues/84/comments","events_url":"https://api.github.com/repos/chjj/term.js/issues/84/events","html_url":"https://github.com/chjj/term.js/issues/84","id":100748140,"number":84,"title":"Exception occurs when wrapping occurs on the final line with a scrolling region set","user":{"login":"chris-morgan","id":392868,"avatar_url":"https://avatars.githubusercontent.com/u/392868?v=3","gravatar_id":"","url":"https://api.github.com/users/chris-morgan","html_url":"https://github.com/chris-morgan","followers_url":"https://api.github.com/users/chris-morgan/followers","following_url":"https://api.github.com/users/chris-morgan/following{/other_user}","gists_url":"https://api.github.com/users/chris-morgan/gists{/gist_id}","starred_url":"https://api.github.com/users/chris-morgan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chris-morgan/subscriptions","organizations_url":"https://api.github.com/users/chris-morgan/orgs","repos_url":"https://api.github.com/users/chris-morgan/repos","events_url":"https://api.github.com/users/chris-morgan/events{/privacy}","received_events_url":"https://api.github.com/users/chris-morgan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-13T11:42:23Z","updated_at":"2015-12-10T12:42:53Z","closed_at":null,"body":"Minimal test case:\r\n\r\n```javascript\r\nvar t = new Terminal();\r\nt.show();\r\nt.resize(3, 1);\r\nt.write(\"\\x1b[1;2r...!\");\r\n```\r\n\r\n(<code>CSI *Ps* ; *Ps* r</code> meaning “Set Scrolling Region [top;bottom]”.)\r\n\r\nThis causes an exception on line 1529:\r\n\r\n```javascript\r\n              this.lines[this.y + this.ybase][this.x] = [this.curAttr, ch];\r\n```\r\n\r\n… because `this.lines[this.y + this.ybase]` is undefined.\r\n\r\nI’m not certain what the “correct” behaviour here would be, but it definitely shouldn’t crash.\r\n\r\nThis was encountered by @codebutcher playing back a recorded Vim session in a Terminal instance that was too small in chris-morgan/tty-player#1."},"comment":{"url":"https://api.github.com/repos/chjj/term.js/issues/comments/163599086","html_url":"https://github.com/chjj/term.js/issues/84#issuecomment-163599086","issue_url":"https://api.github.com/repos/chjj/term.js/issues/84","id":163599086,"user":{"login":"zotherstupidguy","id":10923261,"avatar_url":"https://avatars.githubusercontent.com/u/10923261?v=3","gravatar_id":"","url":"https://api.github.com/users/zotherstupidguy","html_url":"https://github.com/zotherstupidguy","followers_url":"https://api.github.com/users/zotherstupidguy/followers","following_url":"https://api.github.com/users/zotherstupidguy/following{/other_user}","gists_url":"https://api.github.com/users/zotherstupidguy/gists{/gist_id}","starred_url":"https://api.github.com/users/zotherstupidguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zotherstupidguy/subscriptions","organizations_url":"https://api.github.com/users/zotherstupidguy/orgs","repos_url":"https://api.github.com/users/zotherstupidguy/repos","events_url":"https://api.github.com/users/zotherstupidguy/events{/privacy}","received_events_url":"https://api.github.com/users/zotherstupidguy/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T12:42:53Z","updated_at":"2015-12-10T12:42:53Z","body":"this was encountered with vim, should it be expected to crash with emacs as well?"}}