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 --------------- 1 file changed, 15 deletions(-) (limited to 'autoload/deoplete/handler.vim') 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 -- cgit v1.2.3