Posting vim message when no clang candidates

This commit is contained in:
Strahinja Val Markovic 2012-07-28 12:06:59 -07:00
parent ae618c5566
commit 76715bd94c

View File

@ -170,7 +170,10 @@ class ClangCompleter( Completer ):
def CandidatesFromStoredRequest( self ): def CandidatesFromStoredRequest( self ):
if not self.future: if not self.future:
return [] return []
return [ CompletionDataToDict( x ) for x in self.future.GetResults() ] results = [ CompletionDataToDict( x ) for x in self.future.GetResults() ]
if not results:
PostVimMessage( 'No completions found; errors in the file?' )
return results
def OnFileReadyToParse( self ): def OnFileReadyToParse( self ):