{"action":"created","issue":{"url":"https://api.github.com/repos/Shougo/deoplete.nvim/issues/83","labels_url":"https://api.github.com/repos/Shougo/deoplete.nvim/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/Shougo/deoplete.nvim/issues/83/comments","events_url":"https://api.github.com/repos/Shougo/deoplete.nvim/issues/83/events","html_url":"https://github.com/Shougo/deoplete.nvim/issues/83","id":119332144,"number":83,"title":"\"Enter\" on exact(?) match dismisses popup-menu, but does not adds linebreak","user":{"login":"blueyed","id":9766,"avatar_url":"https://avatars.githubusercontent.com/u/9766?v=3","gravatar_id":"","url":"https://api.github.com/users/blueyed","html_url":"https://github.com/blueyed","followers_url":"https://api.github.com/users/blueyed/followers","following_url":"https://api.github.com/users/blueyed/following{/other_user}","gists_url":"https://api.github.com/users/blueyed/gists{/gist_id}","starred_url":"https://api.github.com/users/blueyed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blueyed/subscriptions","organizations_url":"https://api.github.com/users/blueyed/orgs","repos_url":"https://api.github.com/users/blueyed/repos","events_url":"https://api.github.com/users/blueyed/events{/privacy}","received_events_url":"https://api.github.com/users/blueyed/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-29T02:52:30Z","updated_at":"2015-11-29T06:34:12Z","closed_at":"2015-11-29T06:34:12Z","body":"TEST CASE:\r\n1. `nvim foo`\r\n2. Insert `foobarbaz`\r\n3. Press Enter\r\n4. Insert `foobarbaz` again, a completion for it will be shown.\r\n5. Press Enter\r\n\r\nEXPECTED RESULT:\r\nYou are on line 3 now.\r\n\r\nACTUAL RESULT:\r\nThe pressing of Enter dismisses the completion menu.\r\n\r\nThis appears to be related to when there's an exact match.\r\n(When this happened to me before, I've experimented with setting `completeopt+=noselect,noinsert` explicitly, but that does not seem to help now.)\r\n\r\nMinimal vimrc:\r\n```\r\nset runtimepath+=~/.vim/neobundles/deoplete/\r\nlet g:deoplete#enable_at_startup = 1\r\n```"},"comment":{"url":"https://api.github.com/repos/Shougo/deoplete.nvim/issues/comments/160383806","html_url":"https://github.com/Shougo/deoplete.nvim/issues/83#issuecomment-160383806","issue_url":"https://api.github.com/repos/Shougo/deoplete.nvim/issues/83","id":160383806,"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-11-29T06:34:12Z","updated_at":"2015-11-29T06:34:12Z","body":"It is Vim's feature.\r\nPlease see `:help popupmenu-keys`\r\n\r\nYou should remap `<CR>` key.\r\n\r\n```vim\r\n\" <CR>: close popup and save indent.\r\ninoremap <silent> <CR> <C-r>=<SID>my_cr_function()<CR>\r\nfunction! s:my_cr_function()\r\n  return deoplete#mappings#smart_close_popup() . \"\\<CR>\"\r\nendfunction\r\n```"}}