Making sure that 'flags' is a list
This commit is contained in:
parent
d3874ebb65
commit
424736e395
@ -184,7 +184,7 @@ class ClangCompleter( Completer ):
|
|||||||
|
|
||||||
def DebugInfo( self ):
|
def DebugInfo( self ):
|
||||||
filename = vim.current.buffer.name
|
filename = vim.current.buffer.name
|
||||||
flags = self.flags.FlagsForFile( filename )
|
flags = self.flags.FlagsForFile( filename ) or []
|
||||||
return 'Flags for {0}:\n{1}'.format( filename, list( flags ) )
|
return 'Flags for {0}:\n{1}'.format( filename, list( flags ) )
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user