Show More
@@ -403,8 +403,8 class IPCompleter(Completer): | |||||
403 | #print 'Completer->alias_matches:',text,'lb',self.lbuf # dbg |
|
403 | #print 'Completer->alias_matches:',text,'lb',self.lbuf # dbg | |
404 |
|
404 | |||
405 | # if we are not in the first 'item', alias matching |
|
405 | # if we are not in the first 'item', alias matching | |
406 | # doesn't make sense |
|
406 | # doesn't make sense - unless we are starting with 'sudo' command. | |
407 | if ' ' in self.lbuf.lstrip(): |
|
407 | if ' ' in self.lbuf.lstrip() and not self.lbuf.lstrip().startswith('sudo'): | |
408 | return [] |
|
408 | return [] | |
409 | text = os.path.expanduser(text) |
|
409 | text = os.path.expanduser(text) | |
410 | aliases = self.alias_table.keys() |
|
410 | aliases = self.alias_table.keys() |
General Comments 0
You need to be logged in to leave comments.
Login now