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:
parent
840930ce09
commit
5207918432
@ -103,7 +103,7 @@ class FilenameCompleter( ThreadedCompleter ):
|
||||
except:
|
||||
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 )
|
||||
|
||||
return sorted( set( paths ) )
|
||||
|
Loading…
Reference in New Issue
Block a user