From dd2deaecbe8cf74559d24b26fe1c973c7d69ab0c 2008-09-03 15:57:32 From: gvaroquaux Date: 2008-09-03 15:57:32 Subject: [PATCH] More elegant approach to previous buglet. --- diff --git a/IPython/frontend/linefrontendbase.py b/IPython/frontend/linefrontendbase.py index c45e4be..959554c 100644 --- a/IPython/frontend/linefrontendbase.py +++ b/IPython/frontend/linefrontendbase.py @@ -216,7 +216,7 @@ class LineFrontEndBase(FrontEndBase): new_line, completions = self.complete(line) if len(completions)>1: self.write_completion(completions, new_line=new_line) - if not line == new_line: + elif not line == new_line: self.input_buffer = new_line if self.debug: print >>sys.__stdout__, 'line', line