summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--autoload/deoplete/handler.vim15
-rw-r--r--autoload/deoplete/mapping.vim1
2 files changed, 1 insertions, 15 deletions
diff --git a/autoload/deoplete/handler.vim b/autoload/deoplete/handler.vim
index 49a8cd2..b86425a 100644
--- a/autoload/deoplete/handler.vim
+++ b/autoload/deoplete/handler.vim
@@ -246,21 +246,6 @@ function! s:is_skip_text(event) abort
return 1
endif
- " Note: Use g:deoplete#_context is needed instead of
- " g:deoplete#_prev_completion
- let prev_input = get(g:deoplete#_context, 'input', '')
- if input ==# prev_input
- \ && input !=# ''
- \ && a:event !=# 'Manual'
- \ && a:event !=# 'Async'
- \ && a:event !=# 'Update'
- \ && a:event !=# 'TextChangedP'
- return 1
- endif
- if a:event ==# 'Update' && prev_input !=# '' && input !=# prev_input
- return 1
- endif
-
let displaywidth = strdisplaywidth(input) + 1
let is_virtual = virtcol('.') >= displaywidth
if &l:formatoptions =~# '[tca]' && &l:textwidth > 0
diff --git a/autoload/deoplete/mapping.vim b/autoload/deoplete/mapping.vim
index 911b9cf..84d4917 100644
--- a/autoload/deoplete/mapping.vim
+++ b/autoload/deoplete/mapping.vim
@@ -45,6 +45,7 @@ function! deoplete#mapping#_complete() abort
return ''
endif
+ " echomsg string(g:deoplete#_context)
if empty(g:deoplete#_context.candidates) && deoplete#util#check_popup()
" Note: call complete() to close the popup
call complete(1, [])