From df7026e9b6a168ce26fff1e3cf2625fe079639df Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Sun, 28 Apr 2013 15:51:59 -0700 Subject: [PATCH] Fix error on YcmDebugInfo in quickfix window Fixes #283 --- python/completers/cpp/clang_completer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/completers/cpp/clang_completer.py b/python/completers/cpp/clang_completer.py index 90f04a28..07b8ee4f 100644 --- a/python/completers/cpp/clang_completer.py +++ b/python/completers/cpp/clang_completer.py @@ -287,6 +287,8 @@ class ClangCompleter( Completer ): def DebugInfo( self ): filename = vim.current.buffer.name + if not filename: + return '' flags = self.flags.FlagsForFile( filename ) or [] source = extra_conf_store.ModuleFileForSourceFile( filename ) return 'Flags for {0} loaded from {1}:\n{2}'.format( filename,