Trivial refactoring
This commit is contained in:
parent
326d77fd43
commit
6579a1d05d
@ -77,12 +77,13 @@ class ClangCompleter( Completer ):
|
|||||||
|
|
||||||
|
|
||||||
def CandidatesForQueryAsync( self, query ):
|
def CandidatesForQueryAsync( self, query ):
|
||||||
if self.completer.UpdatingTranslationUnit( vim.current.buffer.name ):
|
filename = vim.current.buffer.name
|
||||||
|
|
||||||
|
if self.completer.UpdatingTranslationUnit( filename ):
|
||||||
vimsupport.PostVimMessage( 'Still parsing file, no completions yet.' )
|
vimsupport.PostVimMessage( 'Still parsing file, no completions yet.' )
|
||||||
self.completions_future = None
|
self.completions_future = None
|
||||||
return
|
return
|
||||||
|
|
||||||
filename = vim.current.buffer.name
|
|
||||||
flags = self.flags.FlagsForFile( filename )
|
flags = self.flags.FlagsForFile( filename )
|
||||||
if not flags:
|
if not flags:
|
||||||
vimsupport.PostVimMessage( 'Still no compile flags, no completions yet.' )
|
vimsupport.PostVimMessage( 'Still no compile flags, no completions yet.' )
|
||||||
|
Loading…
Reference in New Issue
Block a user