{"action":"created","issue":{"url":"https://api.github.com/repos/vimwiki/vimwiki/issues/106","labels_url":"https://api.github.com/repos/vimwiki/vimwiki/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/vimwiki/vimwiki/issues/106/comments","events_url":"https://api.github.com/repos/vimwiki/vimwiki/issues/106/events","html_url":"https://github.com/vimwiki/vimwiki/pull/106","id":53957966,"number":106,"title":"Bold anchors were duplicated in get_anchors() results","user":{"login":"t7ko","id":8833179,"avatar_url":"https://avatars.githubusercontent.com/u/8833179?v=3","gravatar_id":"","url":"https://api.github.com/users/t7ko","html_url":"https://github.com/t7ko","followers_url":"https://api.github.com/users/t7ko/followers","following_url":"https://api.github.com/users/t7ko/following{/other_user}","gists_url":"https://api.github.com/users/t7ko/gists{/gist_id}","starred_url":"https://api.github.com/users/t7ko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t7ko/subscriptions","organizations_url":"https://api.github.com/users/t7ko/orgs","repos_url":"https://api.github.com/users/t7ko/repos","events_url":"https://api.github.com/users/t7ko/events{/privacy}","received_events_url":"https://api.github.com/users/t7ko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-10T13:18:29Z","updated_at":"2015-01-12T09:05:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/vimwiki/vimwiki/pulls/106","html_url":"https://github.com/vimwiki/vimwiki/pull/106","diff_url":"https://github.com/vimwiki/vimwiki/pull/106.diff","patch_url":"https://github.com/vimwiki/vimwiki/pull/106.patch"},"body":"Open new wiki page, add bold text in (e.g. `*bold*`), and issue:\r\n```\r\n:echo vimwiki#base#get_anchors(@%, 'default')\r\n```\r\n\r\nYou'll see that `bold` is returned twice.  Apparently it's because `matchstr()` expects that `{count}` argument starts numbering at 1 not at 0 (vim docs say nothing about this, but experiments kind of proved it).\r\n\r\nSo I've fixed the `vimwiki#base#get_anchors()` to account for it.\r\n\r\n(PS: Ubuntu, Vim 7.4)"},"comment":{"url":"https://api.github.com/repos/vimwiki/vimwiki/issues/comments/69542996","html_url":"https://github.com/vimwiki/vimwiki/pull/106#issuecomment-69542996","issue_url":"https://api.github.com/repos/vimwiki/vimwiki/issues/106","id":69542996,"user":{"login":"EinfachToll","id":585537,"avatar_url":"https://avatars.githubusercontent.com/u/585537?v=3","gravatar_id":"","url":"https://api.github.com/users/EinfachToll","html_url":"https://github.com/EinfachToll","followers_url":"https://api.github.com/users/EinfachToll/followers","following_url":"https://api.github.com/users/EinfachToll/following{/other_user}","gists_url":"https://api.github.com/users/EinfachToll/gists{/gist_id}","starred_url":"https://api.github.com/users/EinfachToll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EinfachToll/subscriptions","organizations_url":"https://api.github.com/users/EinfachToll/orgs","repos_url":"https://api.github.com/users/EinfachToll/repos","events_url":"https://api.github.com/users/EinfachToll/events{/privacy}","received_events_url":"https://api.github.com/users/EinfachToll/received_events","type":"User","site_admin":false},"created_at":"2015-01-12T09:05:56Z","updated_at":"2015-01-12T09:05:56Z","body":"Ok, makes sense."}}