Checking if ultisnips data present before using it

Mentioned in issue #583, but it's not the root cause.
This commit is contained in:
Strahinja Val Markovic 2013-10-14 12:32:18 -07:00
parent c3fcaf2b29
commit a534a58477

View File

@ -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' ] ),