{"action":"created","issue":{"url":"https://api.github.com/repos/vim-jp/issues/issues/683","labels_url":"https://api.github.com/repos/vim-jp/issues/issues/683/labels{/name}","comments_url":"https://api.github.com/repos/vim-jp/issues/issues/683/comments","events_url":"https://api.github.com/repos/vim-jp/issues/issues/683/events","html_url":"https://github.com/vim-jp/issues/issues/683","id":53388418,"number":683,"title":"complete()による先頭マッチしない補完を連続で行った場合、ドットレジスタの値がおかしくなる","user":{"login":"Shougo","id":41495,"avatar_url":"https://avatars.githubusercontent.com/u/41495?v=3","gravatar_id":"","url":"https://api.github.com/users/Shougo","html_url":"https://github.com/Shougo","followers_url":"https://api.github.com/users/Shougo/followers","following_url":"https://api.github.com/users/Shougo/following{/other_user}","gists_url":"https://api.github.com/users/Shougo/gists{/gist_id}","starred_url":"https://api.github.com/users/Shougo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shougo/subscriptions","organizations_url":"https://api.github.com/users/Shougo/orgs","repos_url":"https://api.github.com/users/Shougo/repos","events_url":"https://api.github.com/users/Shougo/events{/privacy}","received_events_url":"https://api.github.com/users/Shougo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vim-jp/issues/labels/status/patched","name":"status/patched","color":"e102d8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2015-01-05T11:46:57Z","updated_at":"2015-02-16T13:36:46Z","closed_at":null,"body":"```vim\r\nset nocompatible\r\n\r\ncall append(1, 'aa11')\r\ncall append(1, 'aa11')\r\n\r\ninoremap <F5> <C-R>=ListMonths()<CR>\r\n\r\nfunc! ListMonths()\r\n  call complete(1, ['January', 'February', 'March',\r\n        \\ 'April', 'May', 'June', 'July', 'August', 'September',\r\n        \\ 'October', 'November', 'December'])\r\n  return ''\r\nendfunc\r\n```\r\n\r\n再現手順：\r\n\r\n* 上記 .vimrc を利用する\r\n\r\n* `/11<CR>` により aa11 に飛ぶ\r\n\r\n* `cw` でインサートモードに入る\r\n\r\n* `<F5><C-p>2<F5><C-p>2<ESC>` （手動補完を出しつつキャンセルして 2 を入力することを 2 回繰り返す）\r\n\r\n* `n.`\r\n\r\n予想される結果:\r\n\r\n```\r\n\r\naa22\r\naa22\r\n```\r\n\r\n実際の結果：\r\n\r\n```\r\n\r\naa22\r\naa2\r\n```\r\n\r\nEdit: 現在この現象は `complete()`でのみ確認しているため、タイトルを変更しました。"},"comment":{"url":"https://api.github.com/repos/vim-jp/issues/issues/comments/74508914","html_url":"https://github.com/vim-jp/issues/issues/683#issuecomment-74508914","issue_url":"https://api.github.com/repos/vim-jp/issues/issues/683","id":74508914,"user":{"login":"Shougo","id":41495,"avatar_url":"https://avatars.githubusercontent.com/u/41495?v=3","gravatar_id":"","url":"https://api.github.com/users/Shougo","html_url":"https://github.com/Shougo","followers_url":"https://api.github.com/users/Shougo/followers","following_url":"https://api.github.com/users/Shougo/following{/other_user}","gists_url":"https://api.github.com/users/Shougo/gists{/gist_id}","starred_url":"https://api.github.com/users/Shougo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shougo/subscriptions","organizations_url":"https://api.github.com/users/Shougo/orgs","repos_url":"https://api.github.com/users/Shougo/repos","events_url":"https://api.github.com/users/Shougo/events{/privacy}","received_events_url":"https://api.github.com/users/Shougo/received_events","type":"User","site_admin":false},"created_at":"2015-02-16T13:36:46Z","updated_at":"2015-02-16T13:36:46Z","body":"ここでパッチを寝かせておくより、 vim_dev にパッチを投稿して、皆に変更の妥当性を判断してもらったほうが良いと思いますがいかがでしょうか。"}}