Merge pull request #308 from JazzCore/fix_307
fix IndexError when min_num_of_chars is set to 0
This commit is contained in:
commit
3a984f938e
@ -63,8 +63,8 @@ class FilenameCompleter( ThreadedCompleter ):
|
|||||||
|
|
||||||
|
|
||||||
def ShouldUseNowInner( self, start_column ):
|
def ShouldUseNowInner( self, start_column ):
|
||||||
return ( vim.current.line[ start_column - 1 ] == '/' or
|
return ( start_column and ( vim.current.line[ start_column - 1 ] == '/' or
|
||||||
self.AtIncludeStatementStart( start_column ) )
|
self.AtIncludeStatementStart( start_column ) ) )
|
||||||
|
|
||||||
|
|
||||||
def SupportedFiletypes( self ):
|
def SupportedFiletypes( self ):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user