Show More
@@ -384,10 +384,14 b' class IPCompleter(Completer):' | |||||
384 | if d[-1] in ['/','\\']: |
|
384 | if d[-1] in ['/','\\']: | |
385 | d = d[:-1] |
|
385 | d = d[:-1] | |
386 |
|
386 | |||
387 |
|
|
387 | subdirs = os.listdir(d) | |
|
388 | if subdirs: | |||
|
389 | matches = [ (d + '/' + p) for p in subdirs] | |||
388 | return single_dir_expand(matches) |
|
390 | return single_dir_expand(matches) | |
389 | else: |
|
391 | else: | |
390 | return matches |
|
392 | return matches | |
|
393 | else: | |||
|
394 | return matches | |||
391 |
|
395 | |||
392 | lbuf = self.lbuf |
|
396 | lbuf = self.lbuf | |
393 | open_quotes = 0 # track strings with open quotes |
|
397 | open_quotes = 0 # track strings with open quotes | |
@@ -437,6 +441,7 b' class IPCompleter(Completer):' | |||||
437 | matches = [text_prefix + |
|
441 | matches = [text_prefix + | |
438 | protect_filename(f) for f in m0] |
|
442 | protect_filename(f) for f in m0] | |
439 |
|
443 | |||
|
444 | print 'mm',matches # dbg | |||
440 | return single_dir_expand(matches) |
|
445 | return single_dir_expand(matches) | |
441 |
|
446 | |||
442 | def alias_matches(self, text): |
|
447 | def alias_matches(self, text): |
General Comments 0
You need to be logged in to leave comments.
Login now