Fixing rare hang issue with ultisnips completer

The issue was that AsyncCandidateRequestReady in the ultisnips completer would
always return false if there were no snippets for the current filetype, leading
to an infinite loop in CompletionsForQuery.

Fixes #270.
This commit is contained in:
Strahinja Val Markovic 2013-04-24 13:07:56 -07:00
parent a7203d97c8
commit 8c0a9bc90e

View File

@ -43,11 +43,11 @@ class UltiSnipsCompleter( GeneralCompleter ):
def AsyncCandidateRequestReady( self ):
return bool( self._candidates )
return True
def CandidatesFromStoredRequest( self ):
return self._filtered_candidates
return self._filtered_candidates if self._filtered_candidates else []
def OnFileReadyToParse( self ):