{"action":"created","issue":{"url":"https://api.github.com/repos/atom/atom/issues/11645","repository_url":"https://api.github.com/repos/atom/atom","labels_url":"https://api.github.com/repos/atom/atom/issues/11645/labels{/name}","comments_url":"https://api.github.com/repos/atom/atom/issues/11645/comments","events_url":"https://api.github.com/repos/atom/atom/issues/11645/events","html_url":"https://github.com/atom/atom/issues/11645","id":151772058,"number":11645,"title":"Editor hangs forever when navigating to the end of a long line","user":{"login":"alexchandel","id":637714,"avatar_url":"https://avatars.githubusercontent.com/u/637714?v=3","gravatar_id":"","url":"https://api.github.com/users/alexchandel","html_url":"https://github.com/alexchandel","followers_url":"https://api.github.com/users/alexchandel/followers","following_url":"https://api.github.com/users/alexchandel/following{/other_user}","gists_url":"https://api.github.com/users/alexchandel/gists{/gist_id}","starred_url":"https://api.github.com/users/alexchandel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexchandel/subscriptions","organizations_url":"https://api.github.com/users/alexchandel/orgs","repos_url":"https://api.github.com/users/alexchandel/repos","events_url":"https://api.github.com/users/alexchandel/events{/privacy}","received_events_url":"https://api.github.com/users/alexchandel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/atom/labels/bug","name":"bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/atom/atom/labels/performance","name":"performance","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-04-29T00:27:09Z","updated_at":"2016-05-02T11:35:26Z","closed_at":null,"body":"### Description\r\n\r\nWhen the cursor is at column 0 of the line after an extremely long line, and the left arrow key is pressed to move the cursor to the end of that line, Atom freezes forever.\r\n\r\nMoreover upon relaunch, it reopens the SAME FILE to the SAME CURSOR POSITION and hangs again, meaning the user is stuck in a permanent hang-restart loop. Atom is reduced to an annoying emulator of DLL Hell.\r\n\r\n### Steps to Reproduce\r\n\r\n0. Set Atom to open\r\n1. Open a 200kB XML file, encoded in UTF-16 LE, that has all its text distributed on two lines.\r\n2. Atom opens this file with your cursor at the top left.\r\n3. Move the cursor to column 0 of the second line.\r\n4. Press the left arrow key.\r\n5. Atom wraps around and then hangs forever.\r\n\r\n### Versions\r\n\r\n1.7.3, tested on OSX 10.11.4 and Windows 10 x64."},"comment":{"url":"https://api.github.com/repos/atom/atom/issues/comments/216211781","html_url":"https://github.com/atom/atom/issues/11645#issuecomment-216211781","issue_url":"https://api.github.com/repos/atom/atom/issues/11645","id":216211781,"user":{"login":"bj7","id":1395096,"avatar_url":"https://avatars.githubusercontent.com/u/1395096?v=3","gravatar_id":"","url":"https://api.github.com/users/bj7","html_url":"https://github.com/bj7","followers_url":"https://api.github.com/users/bj7/followers","following_url":"https://api.github.com/users/bj7/following{/other_user}","gists_url":"https://api.github.com/users/bj7/gists{/gist_id}","starred_url":"https://api.github.com/users/bj7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bj7/subscriptions","organizations_url":"https://api.github.com/users/bj7/orgs","repos_url":"https://api.github.com/users/bj7/repos","events_url":"https://api.github.com/users/bj7/events{/privacy}","received_events_url":"https://api.github.com/users/bj7/received_events","type":"User","site_admin":false},"created_at":"2016-05-02T11:35:26Z","updated_at":"2016-05-02T11:35:26Z","body":"Ahh this is true. When I get some free time I'll poke around in the buffer files to see if I can't find out more, but my day job is calling now.\r\n\r\n@alexchandel , does the hang only happen on really big lines with the incorrect encoding, or does it happen on shorter lines with incorrect encoding?"}}