{"action":"created","issue":{"url":"https://api.github.com/repos/codemirror/CodeMirror/issues/4111","repository_url":"https://api.github.com/repos/codemirror/CodeMirror","labels_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/4111/labels{/name}","comments_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/4111/comments","events_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/4111/events","html_url":"https://github.com/codemirror/CodeMirror/issues/4111","id":165283825,"number":4111,"title":"Get char at end of line","user":{"login":"lukasoppermann","id":813754,"avatar_url":"https://avatars.githubusercontent.com/u/813754?v=3","gravatar_id":"","url":"https://api.github.com/users/lukasoppermann","html_url":"https://github.com/lukasoppermann","followers_url":"https://api.github.com/users/lukasoppermann/followers","following_url":"https://api.github.com/users/lukasoppermann/following{/other_user}","gists_url":"https://api.github.com/users/lukasoppermann/gists{/gist_id}","starred_url":"https://api.github.com/users/lukasoppermann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukasoppermann/subscriptions","organizations_url":"https://api.github.com/users/lukasoppermann/orgs","repos_url":"https://api.github.com/users/lukasoppermann/repos","events_url":"https://api.github.com/users/lukasoppermann/events{/privacy}","received_events_url":"https://api.github.com/users/lukasoppermann/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-07-13T10:04:28Z","updated_at":"2016-07-13T20:24:15Z","closed_at":"2016-07-13T10:11:05Z","body":"Hey, I am trying to get the start and end of a selection. However if the selection is on multiple lines, I want to only get the start and end of line `n`.\r\n\r\nHowever, using `editor.charCoords` I would need the `ch` value of the end of line `n`, using `getCursor` I can only (to may knowledge) get the `ch` value of the start of the selection and the end. But if the end is line `n+X` the `ch` value is useless.\r\n\r\nIs there any workaround? Any way I can get this value?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/codemirror/CodeMirror/issues/comments/232475549","html_url":"https://github.com/codemirror/CodeMirror/issues/4111#issuecomment-232475549","issue_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/4111","id":232475549,"user":{"login":"lukasoppermann","id":813754,"avatar_url":"https://avatars.githubusercontent.com/u/813754?v=3","gravatar_id":"","url":"https://api.github.com/users/lukasoppermann","html_url":"https://github.com/lukasoppermann","followers_url":"https://api.github.com/users/lukasoppermann/followers","following_url":"https://api.github.com/users/lukasoppermann/following{/other_user}","gists_url":"https://api.github.com/users/lukasoppermann/gists{/gist_id}","starred_url":"https://api.github.com/users/lukasoppermann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukasoppermann/subscriptions","organizations_url":"https://api.github.com/users/lukasoppermann/orgs","repos_url":"https://api.github.com/users/lukasoppermann/repos","events_url":"https://api.github.com/users/lukasoppermann/events{/privacy}","received_events_url":"https://api.github.com/users/lukasoppermann/received_events","type":"User","site_admin":false},"created_at":"2016-07-13T20:24:15Z","updated_at":"2016-07-13T20:24:15Z","body":"Hey, yes, this is true. It works fine if I just have 1 line, part of one line or multiple lines. What I have trouble with and what I think (??) your suggestion does not solve, is when I have one \"editor-line\" (w.g. line 23), which is shown n two lines, due to a wrap.\r\n\r\nIn the 2 screenshots, I would like to get the center of the first selected \"line\", but actually multiple \"lines\" are \"editor-line\" 23.\r\n\r\n<img width=\"672\" alt=\"screen shot 2016-07-13 at 22 23 08\" src=\"https://cloud.githubusercontent.com/assets/813754/16818503/69cde73a-4948-11e6-956a-be202b27c161.png\">\r\n<img width=\"674\" alt=\"screen shot 2016-07-13 at 22 22 42\" src=\"https://cloud.githubusercontent.com/assets/813754/16818504/69d7be4a-4948-11e6-9c1f-edaeedc0440f.png\">\r\n"}}
{"actor":{"display_login":"lukasoppermann"}}