diff --git a/IPython/completer.py b/IPython/completer.py index 60eb7ed..597e99d 100644 --- a/IPython/completer.py +++ b/IPython/completer.py @@ -450,7 +450,7 @@ class IPCompleter(Completer): # if we are not in the first 'item', alias matching # doesn't make sense - if ' ' in self.lbuf: + if ' ' in self.lbuf.lstrip(): return [] text = os.path.expanduser(text) aliases = self.alias_table.keys()