From 424736e3953fe9afa236c508df928e4afab2d07b Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Mon, 28 Jan 2013 12:56:45 -0800 Subject: [PATCH] Making sure that 'flags' is a list --- python/completers/cpp/clang_completer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/completers/cpp/clang_completer.py b/python/completers/cpp/clang_completer.py index 0228069a..4bdc50a2 100644 --- a/python/completers/cpp/clang_completer.py +++ b/python/completers/cpp/clang_completer.py @@ -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 ) )