Skip to content

Commit

Permalink
Remove deoplete#refresh()
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Aug 11, 2019
1 parent 153e242 commit 02e48af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
8 changes: 0 additions & 8 deletions autoload/deoplete.vim
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,6 @@ function! deoplete#cancel_popup() abort
call deoplete#handler#_skip_next_completion()
return pumvisible() ? "\<C-e>" : ''
endfunction
function! deoplete#refresh() abort
if exists('g:deoplete#_context')
if get(g:deoplete#_context, 'event', '') ==# 'Manual'
let g:deoplete#_context.event = 'Refresh'
endif
endif
return pumvisible() ? "\<C-e>" : ''
endfunction
function! deoplete#insert_candidate(number) abort
return deoplete#mapping#_insert_candidate(a:number)
endfunction
Expand Down
11 changes: 4 additions & 7 deletions doc/deoplete.txt
Original file line number Diff line number Diff line change
Expand Up @@ -521,13 +521,6 @@ deoplete#manual_complete([{sources}])
let col = col('.') - 1
return !col || getline('.')[col - 1] =~ '\s'
endfunction"}}}
<
*deoplete#refresh()*
deoplete#refresh()
Refresh the candidates.
Note: It must be in |map-<expr>|.
>
inoremap <expr><C-l> deoplete#refresh()
<
*deoplete#smart_close_popup()*
deoplete#smart_close_popup()
Expand Down Expand Up @@ -1874,6 +1867,10 @@ A: https://github.com/deoplete-plugins/deoplete-jedi/issues/35
==============================================================================
COMPATIBILITY *deoplete-compatibility*

2019.08.11
* Remove deoplete#refresh(). It does not work. You should use
deoplete#manual_complete() instead.

2019.07.16
* Remove old deoplete#mappings# mappings. You need to use new mappings.

Expand Down

0 comments on commit 02e48af

Please sign in to comment.