diff --git a/python/completers/general/filename_completer.py b/python/completers/general/filename_completer.py index da5de7f2..01af4382 100644 --- a/python/completers/general/filename_completer.py +++ b/python/completers/general/filename_completer.py @@ -63,8 +63,8 @@ class FilenameCompleter( ThreadedCompleter ): def ShouldUseNowInner( self, start_column ): - return ( vim.current.line[ start_column - 1 ] == '/' or - self.AtIncludeStatementStart( start_column ) ) + return ( start_column and ( vim.current.line[ start_column - 1 ] == '/' or + self.AtIncludeStatementStart( start_column ) ) ) def SupportedFiletypes( self ):