{"action":"created","issue":{"url":"https://api.github.com/repos/rob144/smart-writer/issues/3","labels_url":"https://api.github.com/repos/rob144/smart-writer/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/rob144/smart-writer/issues/3/comments","events_url":"https://api.github.com/repos/rob144/smart-writer/issues/3/events","html_url":"https://github.com/rob144/smart-writer/issues/3","id":57413823,"number":3,"title":"Cursor position wrong after backspace when space after wrapped word and following line has text.","user":{"login":"rob144","id":5994190,"avatar_url":"https://avatars.githubusercontent.com/u/5994190?v=3","gravatar_id":"","url":"https://api.github.com/users/rob144","html_url":"https://github.com/rob144","followers_url":"https://api.github.com/users/rob144/followers","following_url":"https://api.github.com/users/rob144/following{/other_user}","gists_url":"https://api.github.com/users/rob144/gists{/gist_id}","starred_url":"https://api.github.com/users/rob144/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rob144/subscriptions","organizations_url":"https://api.github.com/users/rob144/orgs","repos_url":"https://api.github.com/users/rob144/repos","events_url":"https://api.github.com/users/rob144/events{/privacy}","received_events_url":"https://api.github.com/users/rob144/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-12T03:47:30Z","updated_at":"2015-02-12T04:43:10Z","closed_at":null,"body":"To reproduce:\r\n\r\n1. Type some text in the editor so that the last word on the line wraps onto a newline.\r\n2. Enter a space after the wrapped word.\r\n3. Hit Enter once to goto next line.\r\n4. Type some characters.\r\n5. Hit backspace.\r\n6. The cursor goes to the position which is the width of the previous line plus the width of the current line.\r\n\r\nThe cursor should remain on the current line and move back after deleting the current character."},"comment":{"url":"https://api.github.com/repos/rob144/smart-writer/issues/comments/74016870","html_url":"https://github.com/rob144/smart-writer/issues/3#issuecomment-74016870","issue_url":"https://api.github.com/repos/rob144/smart-writer/issues/3","id":74016870,"user":{"login":"rob144","id":5994190,"avatar_url":"https://avatars.githubusercontent.com/u/5994190?v=3","gravatar_id":"","url":"https://api.github.com/users/rob144","html_url":"https://github.com/rob144","followers_url":"https://api.github.com/users/rob144/followers","following_url":"https://api.github.com/users/rob144/following{/other_user}","gists_url":"https://api.github.com/users/rob144/gists{/gist_id}","starred_url":"https://api.github.com/users/rob144/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rob144/subscriptions","organizations_url":"https://api.github.com/users/rob144/orgs","repos_url":"https://api.github.com/users/rob144/repos","events_url":"https://api.github.com/users/rob144/events{/privacy}","received_events_url":"https://api.github.com/users/rob144/received_events","type":"User","site_admin":false},"created_at":"2015-02-12T04:43:10Z","updated_at":"2015-02-12T04:43:10Z","body":"Look at findPrevLineBreakPos() and isWrapBreak parameter.\r\nMay need to implement an isWrapBreak(charIndex) method to check only for wrap break new lines."}}