{"action":"closed","issue":{"url":"https://api.github.com/repos/carlitux/deoplete-ternjs/issues/6","repository_url":"https://api.github.com/repos/carlitux/deoplete-ternjs","labels_url":"https://api.github.com/repos/carlitux/deoplete-ternjs/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/carlitux/deoplete-ternjs/issues/6/comments","events_url":"https://api.github.com/repos/carlitux/deoplete-ternjs/issues/6/events","html_url":"https://github.com/carlitux/deoplete-ternjs/issues/6","id":139767680,"number":6,"title":"autocomplete menu show different result","user":{"login":"iamcco","id":5492542,"avatar_url":"https://avatars.githubusercontent.com/u/5492542?v=3","gravatar_id":"","url":"https://api.github.com/users/iamcco","html_url":"https://github.com/iamcco","followers_url":"https://api.github.com/users/iamcco/followers","following_url":"https://api.github.com/users/iamcco/following{/other_user}","gists_url":"https://api.github.com/users/iamcco/gists{/gist_id}","starred_url":"https://api.github.com/users/iamcco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamcco/subscriptions","organizations_url":"https://api.github.com/users/iamcco/orgs","repos_url":"https://api.github.com/users/iamcco/repos","events_url":"https://api.github.com/users/iamcco/events{/privacy}","received_events_url":"https://api.github.com/users/iamcco/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-10T02:49:05Z","updated_at":"2016-03-25T19:27:14Z","closed_at":"2016-03-25T19:27:14Z","body":"javascript code:\r\n```javascript\r\nvar obj = {\r\n    name: 'aioiyuuko',\r\n    showName: function() {\r\n        console.log(this.name);\r\n    }\r\n};\r\n\r\n$1\r\n$2\r\n$3obj.name\r\n\r\n```\r\nthe $1,$2 and $3 is the position of the cursor. i type `obj.` at $1 i get the right result of autocomplete , but when i type `obj.` at $2 i just got the Omni autocomplete result, the same issue is that i type `console` or `console.`  at $3 position, just get the Omni autocomplete result.\r\n\r\nmininit.vim\r\n```viml\r\n\" vim-plug {\r\n    call plug#begin('~/dotfiles/nvim/plugged')\r\n\r\n    \" deoplete and sources about {\r\n        Plug 'Shougo/deoplete.nvim'\r\n        Plug 'carlitux/deoplete-ternjs', { 'for': 'javascript' }\r\n    \" }\r\n\r\n    call plug#end()\r\n\r\n\" }\r\n\r\n\" plugins {\r\n\r\n    \" deoplete.nvim {\r\n        let g:deoplete#enable_at_startup = 1\r\n        let g:deoplete#max_list = 15\r\n        inoremap <silent> <CR> <C-r>=<SID>my_cr_function()<CR>\r\n        function! s:my_cr_function()\r\n            return (pumvisible() ? \"\\<C-y>\" : \"\" ) . \"\\<CR>\"\r\n        endfunction\r\n        inoremap <expr><TAB>  pumvisible() ? \"\\<C-n>\" : \"\\<TAB>\"\r\n    \" }\r\n\" }\r\n\r\n```"}}