Show More
@@ -409,10 +409,13 b' class IPCompleter(Completer):' | |||||
409 | if len(matches) == 1 and os.path.isdir(matches[0]): |
|
409 | if len(matches) == 1 and os.path.isdir(matches[0]): | |
410 | # Takes care of links to directories also. Use '/' |
|
410 | # Takes care of links to directories also. Use '/' | |
411 | # explicitly, even under Windows, so that name completions |
|
411 | # explicitly, even under Windows, so that name completions | |
412 | # don't end up escaped. |
|
412 | # don't end up escaped. | |
413 | pjoin = os.path.join |
|
|||
414 | d = matches[0] |
|
413 | d = matches[0] | |
415 | matches = [ pjoin(d,p) for p in os.listdir(d) ] |
|
414 | if d[-1] in ['/','\\']: | |
|
415 | d = d[:-1] | |||
|
416 | ||||
|
417 | matches = [ (d + '/' + p) for p in os.listdir(d) ] | |||
|
418 | ||||
416 | return matches |
|
419 | return matches | |
417 |
|
420 | |||
418 | def alias_matches(self, text): |
|
421 | def alias_matches(self, text): |
General Comments 0
You need to be logged in to leave comments.
Login now