summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2017-06-15 08:47:41 +0900
committerShougo Matsushita <Shougo.Matsu@gmail.com>2017-06-15 08:47:41 +0900
commitb61d8d97d1b4728fd0174c6cdc316a815d7d22a2 (patch)
treea93d071f8f805128faf1145f30cd892dd0f2327a /autoload
parent8bd63b7e4f9bb3cf2040724dd71cff195564166a (diff)
downloaddeoplete.nvim-b61d8d97d1b4728fd0174c6cdc316a815d7d22a2.zip
Fix #494 skip_next_completion error
Diffstat (limited to 'autoload')
-rw-r--r--autoload/deoplete/handler.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/autoload/deoplete/handler.vim b/autoload/deoplete/handler.vim
index 925ca9b..a25de34 100644
--- a/autoload/deoplete/handler.vim
+++ b/autoload/deoplete/handler.vim
@@ -213,6 +213,10 @@ function! s:complete_done() abort
endfunction
function! deoplete#handler#_skip_next_completion() abort
+ if !exists('g:deoplete#_context')
+ return
+ endif
+
let input = deoplete#util#get_input('CompleteDone')
if input[-1:] !=# '/'
let g:deoplete#_context.input = input