Checking if ultisnips data present before using it
Mentioned in issue #583, but it's not the root cause.
This commit is contained in:
parent
c3fcaf2b29
commit
a534a58477
@ -45,7 +45,7 @@ class UltiSnipsCompleter( GeneralCompleter ):
|
||||
|
||||
|
||||
def OnBufferVisit( self, request_data ):
|
||||
raw_candidates = request_data[ 'ultisnips_snippets' ]
|
||||
raw_candidates = request_data.get( 'ultisnips_snippets', [] )
|
||||
self._candidates = [
|
||||
responses.BuildCompletionData(
|
||||
str( snip[ 'trigger' ] ),
|
||||
|
Loading…
Reference in New Issue
Block a user