Merge pull request #308 from JazzCore/fix_307

fix IndexError when min_num_of_chars is set to 0
This commit is contained in:
Val Markovic 2013-05-09 20:15:40 -07:00
commit 3a984f938e

View File

@ -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 ):