Only triggering omni_completer when omnifunc set

This commit is contained in:
Strahinja Val Markovic 2013-02-13 10:27:40 -08:00
parent 0399ec94c8
commit 4000da089d

View File

@ -32,6 +32,12 @@ class OmniCompleter( Completer ):
return []
def ShouldUseNowInner( self, start_column ):
if not self.omnifunc:
return False
return super( OmniCompleter, self ).ShouldUseNowInner( start_column )
def CandidatesForQueryAsyncInner( self, query ):
if not self.omnifunc:
self.stored_candidates = None