{"action":"created","issue":{"url":"https://api.github.com/repos/matthewbauer/nix-mode/issues/1","repository_url":"https://api.github.com/repos/matthewbauer/nix-mode","labels_url":"https://api.github.com/repos/matthewbauer/nix-mode/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/matthewbauer/nix-mode/issues/1/comments","events_url":"https://api.github.com/repos/matthewbauer/nix-mode/issues/1/events","html_url":"https://github.com/matthewbauer/nix-mode/issues/1","id":175410161,"number":1,"title":"Auto-indentation places cursor in the wrong spot","user":{"login":"peterhoeg","id":722550,"avatar_url":"https://avatars.githubusercontent.com/u/722550?v=3","gravatar_id":"","url":"https://api.github.com/users/peterhoeg","html_url":"https://github.com/peterhoeg","followers_url":"https://api.github.com/users/peterhoeg/followers","following_url":"https://api.github.com/users/peterhoeg/following{/other_user}","gists_url":"https://api.github.com/users/peterhoeg/gists{/gist_id}","starred_url":"https://api.github.com/users/peterhoeg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterhoeg/subscriptions","organizations_url":"https://api.github.com/users/peterhoeg/orgs","repos_url":"https://api.github.com/users/peterhoeg/repos","events_url":"https://api.github.com/users/peterhoeg/events{/privacy}","received_events_url":"https://api.github.com/users/peterhoeg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-07T04:26:38Z","updated_at":"2016-09-08T00:59:10Z","closed_at":"2016-09-07T19:08:19Z","body":"First of all, this works WAY better than upstream.\r\n\r\nI noticed one issue with auto-indenting though.\r\n\r\nLet's say on on a line that is indented. Hitting \"o\" or \"O\" (I'm using evil) to create a new line below/above also adds the indentation but the cursor is placed BEFORE the spaces.\r\n\r\nBelow, | is my cursor.\r\n\r\n``` nix\r\n{\r\n  a = \"\";|\r\n}\r\n```\r\n\r\nHitting \"o\" gives me ```\"|  \"``` instead of ```\"  |\"``` (the quotation marks are only there to highlight the spaces). I can see the spaces are there but trailing the cursor.\r\n\r\n``` nix\r\n{\r\n  a = \"\";\r\n|\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/matthewbauer/nix-mode/issues/comments/245464522","html_url":"https://github.com/matthewbauer/nix-mode/issues/1#issuecomment-245464522","issue_url":"https://api.github.com/repos/matthewbauer/nix-mode/issues/1","id":245464522,"user":{"login":"peterhoeg","id":722550,"avatar_url":"https://avatars.githubusercontent.com/u/722550?v=3","gravatar_id":"","url":"https://api.github.com/users/peterhoeg","html_url":"https://github.com/peterhoeg","followers_url":"https://api.github.com/users/peterhoeg/followers","following_url":"https://api.github.com/users/peterhoeg/following{/other_user}","gists_url":"https://api.github.com/users/peterhoeg/gists{/gist_id}","starred_url":"https://api.github.com/users/peterhoeg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterhoeg/subscriptions","organizations_url":"https://api.github.com/users/peterhoeg/orgs","repos_url":"https://api.github.com/users/peterhoeg/repos","events_url":"https://api.github.com/users/peterhoeg/events{/privacy}","received_events_url":"https://api.github.com/users/peterhoeg/received_events","type":"User","site_admin":false},"created_at":"2016-09-08T00:59:10Z","updated_at":"2016-09-08T00:59:10Z","body":"Sorry, still doesn't do it. Now the trailing spaces are gone, but the cursor still starts at column 0."}}
{"actor":{"display_login":"peterhoeg"}}