From 7033f056040df03e5e0476a1975c3554f5575cc3 2006-11-02 06:39:54 From: vivainio Date: 2006-11-02 06:39:54 Subject: [PATCH] do not attempt custom completers on empty line --- diff --git a/IPython/completer.py b/IPython/completer.py index b70fcce..82522c5 100644 --- a/IPython/completer.py +++ b/IPython/completer.py @@ -531,6 +531,8 @@ class IPCompleter(Completer): def dispatch_custom_completer(self,text): # print "Custom! '%s' %s" % (text, self.custom_completers) # dbg + if not text.strip(): + return None line = self.lbuf event = Struct() event.line = line diff --git a/IPython/iplib.py b/IPython/iplib.py index 814d5a4..f12f0d1 100644 --- a/IPython/iplib.py +++ b/IPython/iplib.py @@ -6,7 +6,7 @@ Requires Python 2.3 or newer. This file contains all the classes and helper functions specific to IPython. -$Id: iplib.py 1854 2006-10-30 19:54:25Z vivainio $ +$Id: iplib.py 1859 2006-11-02 06:39:54Z vivainio $ """ #***************************************************************************** @@ -1650,6 +1650,7 @@ want to merge them back into the new files.""" % locals() l2 = self.transform_alias(fn,rest) # dir -> dir + # print "alias",line, "->",l2 #dbg if l2 == line: break # ls -> ls -F should not recurse forever