diff --git a/python/ycm.py b/python/ycm.py index 7d22011b..61ccabcd 100644 --- a/python/ycm.py +++ b/python/ycm.py @@ -173,7 +173,7 @@ class ClangCompleter( Completer ): return [ CompletionDataToDict( x ) for x in self.future.GetResults() ] - def OnFileEnter( self ): + def OnFileReadyToParse( self ): self.future = self.completer.UpdateTranslationUnitAsync( vim.current.buffer.name, self.GetUnsavedFilesVector() )