From c344aa70af9eefb8a1103e62d43f3201d5a8f537 Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Sun, 26 Apr 2020 07:51:39 +0900 Subject: Fix #1095 skip text problem --- autoload/deoplete/handler.vim | 15 --------------- autoload/deoplete/mapping.vim | 1 + 2 files changed, 1 insertion(+), 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, []) -- cgit v1.2.3