##// END OF EJS Templates
- Fix recursion issue in previous commit.
fperez -
Show More
@@ -384,8 +384,12 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 matches = [ (d + '/' + p) for p in os.listdir(d) ]
387 subdirs = os.listdir(d)
388 return single_dir_expand(matches)
388 if subdirs:
389 matches = [ (d + '/' + p) for p in subdirs]
390 return single_dir_expand(matches)
391 else:
392 return matches
389 else:
393 else:
390 return matches
394 return matches
391
395
@@ -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