{"action":"created","issue":{"url":"https://api.github.com/repos/abo-abo/swiper/issues/290","labels_url":"https://api.github.com/repos/abo-abo/swiper/issues/290/labels{/name}","comments_url":"https://api.github.com/repos/abo-abo/swiper/issues/290/comments","events_url":"https://api.github.com/repos/abo-abo/swiper/issues/290/events","html_url":"https://github.com/abo-abo/swiper/issues/290","id":116972139,"number":290,"title":"swiper: point jumps to the first line of that the current line is a substring","user":{"login":"zhaojiangbin","id":4935788,"avatar_url":"https://avatars.githubusercontent.com/u/4935788?v=3","gravatar_id":"","url":"https://api.github.com/users/zhaojiangbin","html_url":"https://github.com/zhaojiangbin","followers_url":"https://api.github.com/users/zhaojiangbin/followers","following_url":"https://api.github.com/users/zhaojiangbin/following{/other_user}","gists_url":"https://api.github.com/users/zhaojiangbin/gists{/gist_id}","starred_url":"https://api.github.com/users/zhaojiangbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhaojiangbin/subscriptions","organizations_url":"https://api.github.com/users/zhaojiangbin/orgs","repos_url":"https://api.github.com/users/zhaojiangbin/repos","events_url":"https://api.github.com/users/zhaojiangbin/events{/privacy}","received_events_url":"https://api.github.com/users/zhaojiangbin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-15T04:26:16Z","updated_at":"2015-11-16T21:00:40Z","closed_at":"2015-11-15T10:15:40Z","body":"When in buffer there is another line of which the current line is a sub-string, running `swiper` (<kbd>C-s</kbd>) makes the cursor jumping to that line, instead of staying in the current one.\r\n\r\nTo reproduce in the scratch buffer:\r\n1. Enter the following 10 lines, note the leading spaces in the last two lines:\r\n```\r\nzero\r\none two three\r\none\r\ntwo\r\none two\r\nthree\r\none two three\r\none three\r\n  two\r\n two\r\n```\r\n2. Move the cursor to any of the 3rd, 4th, 5th, 6th and 7th line.\r\n3. Press <kbd>C-s</kbd> anywhere on that line. Watch the cursor jumping to column 0 of the 2nd line.\r\n4. Move the cursor to the 8th line.\r\n5. Press <kbd>C-s</kbd> anywhere on that line. The cursor does not move.\r\n6. The most interesting part happens when the cursor is in the 9th line, press <kbd>C-s</kbd> makes the cursor jumping to the 10th line.\r\n7. Press <kbd>RET</kbd> to select the 10th line and exit from `swiper`.\r\n8. Then press <kbd>C-s</kbd> when in 10th line, watch the cursor jumping to the 4th line."},"comment":{"url":"https://api.github.com/repos/abo-abo/swiper/issues/comments/157168821","html_url":"https://github.com/abo-abo/swiper/issues/290#issuecomment-157168821","issue_url":"https://api.github.com/repos/abo-abo/swiper/issues/290","id":157168821,"user":{"login":"zhaojiangbin","id":4935788,"avatar_url":"https://avatars.githubusercontent.com/u/4935788?v=3","gravatar_id":"","url":"https://api.github.com/users/zhaojiangbin","html_url":"https://github.com/zhaojiangbin","followers_url":"https://api.github.com/users/zhaojiangbin/followers","following_url":"https://api.github.com/users/zhaojiangbin/following{/other_user}","gists_url":"https://api.github.com/users/zhaojiangbin/gists{/gist_id}","starred_url":"https://api.github.com/users/zhaojiangbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhaojiangbin/subscriptions","organizations_url":"https://api.github.com/users/zhaojiangbin/orgs","repos_url":"https://api.github.com/users/zhaojiangbin/repos","events_url":"https://api.github.com/users/zhaojiangbin/events{/privacy}","received_events_url":"https://api.github.com/users/zhaojiangbin/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T21:00:40Z","updated_at":"2015-11-16T21:00:40Z","body":"Verified. Thanks."}}