Fix bug with [File] being shown instead of [Dir]

This is for filename completion in the case of C-family include completion. The
path was being assembled incorrectly so os.isdir() was getting the wrong path
and then could not see was it a directory.
This commit is contained in:
Strahinja Val Markovic 2013-04-26 14:10:48 -07:00
parent 840930ce09
commit 5207918432

View File

@ -103,7 +103,7 @@ class FilenameCompleter( ThreadedCompleter ):
except: except:
relative_paths = [] relative_paths = []
paths.extend( os.path.join( include_path, relative_path ) for paths.extend( os.path.join( include_path, path_dir, relative_path ) for
relative_path in relative_paths ) relative_path in relative_paths )
return sorted( set( paths ) ) return sorted( set( paths ) )