mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 22:20:06 +08:00
Add check for v:completed_item
if you want this feature you should use neovim: +v0.1.0 or vim: +v7.4.774
This commit is contained in:
parent
7a30333321
commit
17cb586a08
@ -13,7 +13,7 @@ augroup neosnippet_complete_done
|
||||
autocmd CompleteDone * call s:my_complete_done()
|
||||
augroup END
|
||||
function! s:my_complete_done() abort "{{{
|
||||
if !empty(v:completed_item)
|
||||
if !empty(v:completed_item) && exists('v:completed_item')
|
||||
let snippet = neosnippet#parser#_get_completed_snippet(v:completed_item,neosnippet#util#get_cur_text(), neosnippet#util#get_next_text())
|
||||
if snippet ==# ''
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user