{"action":"created","issue":{"url":"https://api.github.com/repos/vim-jp/issues/issues/685","labels_url":"https://api.github.com/repos/vim-jp/issues/issues/685/labels{/name}","comments_url":"https://api.github.com/repos/vim-jp/issues/issues/685/comments","events_url":"https://api.github.com/repos/vim-jp/issues/issues/685/events","html_url":"https://github.com/vim-jp/issues/issues/685","id":53622901,"number":685,"title":"complete()による補完時に<C-h>を押すと行補完になる","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/kind/bug","name":"kind/bug","color":"e10c02"},{"url":"https://api.github.com/repos/vim-jp/issues/labels/status/patched","name":"status/patched","color":"e102d8"}],"state":"closed","locked":false,"assignee":{"login":"h-east","id":518808,"avatar_url":"https://avatars.githubusercontent.com/u/518808?v=3","gravatar_id":"","url":"https://api.github.com/users/h-east","html_url":"https://github.com/h-east","followers_url":"https://api.github.com/users/h-east/followers","following_url":"https://api.github.com/users/h-east/following{/other_user}","gists_url":"https://api.github.com/users/h-east/gists{/gist_id}","starred_url":"https://api.github.com/users/h-east/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h-east/subscriptions","organizations_url":"https://api.github.com/users/h-east/orgs","repos_url":"https://api.github.com/users/h-east/repos","events_url":"https://api.github.com/users/h-east/events{/privacy}","received_events_url":"https://api.github.com/users/h-east/received_events","type":"User","site_admin":false},"milestone":null,"comments":25,"created_at":"2015-01-07T11:28:09Z","updated_at":"2015-02-09T01:21:54Z","closed_at":"2015-02-09T01:21:54Z","body":"```\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* 上記 .vimrc を利用する\r\n* 一行目でインサートモードに入り`aa<F5>`を押す\r\n* 補完された文字列を`<C-p>`でキャンセル、`<C-h><C-h>`でaaを削除する\r\n* 補完文字列がなくなった時、ステータス行になぜか行補完を示すメッセージが表示される\r\n\r\nおそらく、`complete()`の実装に行補完を利用していることによる副作用だと思います。\r\n\r\nhttps://github.com/vim-jp/issues/issues/682 のパッチを利用した場合、 `<C-h><C-h>` を押した時（aa を削除する）には補完ウインドウが出ず症状は改善されているようですが、 `<C-h>` を一度だけ押した時（a のみを削除する）はやはり行補完となってしまいます。Vim 7.4.567 in Ubuntu 14.04 にて検証。\r\n\r\nEdit:  申し訳ありません。手順が間違っていたので訂正しました。\r\n\r\nEdit: 682 のパッチを適用した時の検証結果を更新しました。"},"comment":{"url":"https://api.github.com/repos/vim-jp/issues/issues/comments/73445217","html_url":"https://github.com/vim-jp/issues/issues/685#issuecomment-73445217","issue_url":"https://api.github.com/repos/vim-jp/issues/issues/685","id":73445217,"user":{"login":"h-east","id":518808,"avatar_url":"https://avatars.githubusercontent.com/u/518808?v=3","gravatar_id":"","url":"https://api.github.com/users/h-east","html_url":"https://github.com/h-east","followers_url":"https://api.github.com/users/h-east/followers","following_url":"https://api.github.com/users/h-east/following{/other_user}","gists_url":"https://api.github.com/users/h-east/gists{/gist_id}","starred_url":"https://api.github.com/users/h-east/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h-east/subscriptions","organizations_url":"https://api.github.com/users/h-east/orgs","repos_url":"https://api.github.com/users/h-east/repos","events_url":"https://api.github.com/users/h-east/events{/privacy}","received_events_url":"https://api.github.com/users/h-east/received_events","type":"User","site_admin":false},"created_at":"2015-02-09T01:21:54Z","updated_at":"2015-02-09T01:21:54Z","body":"#692 に統合するので閉じます。"}}