{"action":"closed","issue":{"url":"https://api.github.com/repos/samaaron/sonic-pi/issues/591","labels_url":"https://api.github.com/repos/samaaron/sonic-pi/issues/591/labels{/name}","comments_url":"https://api.github.com/repos/samaaron/sonic-pi/issues/591/comments","events_url":"https://api.github.com/repos/samaaron/sonic-pi/issues/591/events","html_url":"https://github.com/samaaron/sonic-pi/issues/591","id":97020150,"number":591,"title":"Cursor placed incorrectly after some snippet autocompletions","user":{"login":"ethancrawford","id":10395940,"avatar_url":"https://avatars.githubusercontent.com/u/10395940?v=3","gravatar_id":"","url":"https://api.github.com/users/ethancrawford","html_url":"https://github.com/ethancrawford","followers_url":"https://api.github.com/users/ethancrawford/followers","following_url":"https://api.github.com/users/ethancrawford/following{/other_user}","gists_url":"https://api.github.com/users/ethancrawford/gists{/gist_id}","starred_url":"https://api.github.com/users/ethancrawford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethancrawford/subscriptions","organizations_url":"https://api.github.com/users/ethancrawford/orgs","repos_url":"https://api.github.com/users/ethancrawford/repos","events_url":"https://api.github.com/users/ethancrawford/events{/privacy}","received_events_url":"https://api.github.com/users/ethancrawford/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-24T10:17:28Z","updated_at":"2015-07-24T10:48:57Z","closed_at":"2015-07-24T10:48:57Z","body":"In the process of creating several of my own snippets, I noticed that if the cursor is intended to end up staying on the same line that the snippet keyword was typed, then the point index in the line it ends up at is usually not correct.\r\nTake for example the following very simple snippet: (a `do` with the cursor placed ready for parameters):\r\n&#35; key: do par\r\n&#35; point_line: 0\r\n&#35; point_index: 4\r\n&#35; --\r\ndo | |\r\n\r\nend\r\nInstead of placing the cursor between the pipes, it places it after them.\r\n\r\nI have a fix ready, though it will require the ll (`live_loop`) snippet to be changed slightly, as the point_index value in that file is incorrect for the fixed cursor placement.\r\n@samaaron I assume it's ok for me to go ahead and edit the `live_loop` snippet as well?"}}