Fileype completer calls InCFamilyFile correctly

This commit is contained in:
Strahinja Val Markovic 2013-10-06 20:36:11 -07:00
parent a9d7105e1b
commit a836f68142

View File

@ -77,9 +77,10 @@ class FilenameCompleter( Completer ):
current_line = request_data[ 'line_value' ] current_line = request_data[ 'line_value' ]
start_column = request_data[ 'start_column' ] start_column = request_data[ 'start_column' ]
filepath = request_data[ 'filepath' ] filepath = request_data[ 'filepath' ]
filetypes = request_data[ 'file_data' ][ filepath ][ 'filetypes' ]
line = current_line[ :start_column ] line = current_line[ :start_column ]
if InCFamilyFile(): if InCFamilyFile( filetypes ):
include_match = self._include_regex.search( line ) include_match = self._include_regex.search( line )
if include_match: if include_match:
path_dir = line[ include_match.end(): ] path_dir = line[ include_match.end(): ]