{"action":"created","issue":{"url":"https://api.github.com/repos/vrapper/vrapper/issues/644","labels_url":"https://api.github.com/repos/vrapper/vrapper/issues/644/labels{/name}","comments_url":"https://api.github.com/repos/vrapper/vrapper/issues/644/comments","events_url":"https://api.github.com/repos/vrapper/vrapper/issues/644/events","html_url":"https://github.com/vrapper/vrapper/issues/644","id":83922301,"number":644,"title":"The \"sort\" command adds extra line","user":{"login":"loonies","id":109212,"avatar_url":"https://avatars.githubusercontent.com/u/109212?v=3","gravatar_id":"","url":"https://api.github.com/users/loonies","html_url":"https://github.com/loonies","followers_url":"https://api.github.com/users/loonies/followers","following_url":"https://api.github.com/users/loonies/following{/other_user}","gists_url":"https://api.github.com/users/loonies/gists{/gist_id}","starred_url":"https://api.github.com/users/loonies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loonies/subscriptions","organizations_url":"https://api.github.com/users/loonies/orgs","repos_url":"https://api.github.com/users/loonies/repos","events_url":"https://api.github.com/users/loonies/events{/privacy}","received_events_url":"https://api.github.com/users/loonies/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vrapper/vrapper/labels/Defect","name":"Defect","color":"e10c02"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-02T08:52:11Z","updated_at":"2015-08-08T22:06:43Z","closed_at":"2015-08-08T22:04:02Z","body":"Consider this example\r\n\r\n~~~\r\nfoo\r\nbar\r\nbaz\r\n\r\nSomething...\r\n~~~\r\n\r\n 1. Select the first 3 lines (visual line selection)\r\n 2. Execute `:'<,'>sort`\r\n 3. The 5th line is added\r\n\r\nResult\r\n\r\n~~~\r\nbar\r\nbaz\r\nfoo\r\n\r\n\r\nSomething...\r\n~~~\r\n\r\nExpected\r\n\r\n~~~\r\nbar\r\nbaz\r\nfoo\r\n\r\nSomething...\r\n~~~"},"comment":{"url":"https://api.github.com/repos/vrapper/vrapper/issues/comments/129057423","html_url":"https://github.com/vrapper/vrapper/issues/644#issuecomment-129057423","issue_url":"https://api.github.com/repos/vrapper/vrapper/issues/644","id":129057423,"user":{"login":"albertdev","id":1451362,"avatar_url":"https://avatars.githubusercontent.com/u/1451362?v=3","gravatar_id":"","url":"https://api.github.com/users/albertdev","html_url":"https://github.com/albertdev","followers_url":"https://api.github.com/users/albertdev/followers","following_url":"https://api.github.com/users/albertdev/following{/other_user}","gists_url":"https://api.github.com/users/albertdev/gists{/gist_id}","starred_url":"https://api.github.com/users/albertdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertdev/subscriptions","organizations_url":"https://api.github.com/users/albertdev/orgs","repos_url":"https://api.github.com/users/albertdev/repos","events_url":"https://api.github.com/users/albertdev/events{/privacy}","received_events_url":"https://api.github.com/users/albertdev/received_events","type":"User","site_admin":false},"created_at":"2015-08-08T22:06:42Z","updated_at":"2015-08-08T22:06:42Z","body":"I completely reworked the internals of ex commands after finding that they duplicated all kinds of bits of code.\r\n\r\nNormally everything should work more consistent now that I moved out the range-finding code to a central class `SimpleLineRange` and leave the conversion for `AbstractLineWiseOperation`."}}