Making sure that 'flags' is a list

This commit is contained in:
Strahinja Val Markovic 2013-01-28 12:56:45 -08:00
parent d3874ebb65
commit 424736e395

View File

@ -184,7 +184,7 @@ class ClangCompleter( Completer ):
def DebugInfo( self ):
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 ) )