From c8a42300c4894e3f13726151fd2a623cef311fa1 2010-08-25 06:56:21 From: Fernando Perez Date: 2010-08-25 06:56:21 Subject: [PATCH] Fix bug with expansions cointaining '~' in them. The terminal was OK, but in the GUI, too early an expansion of the ~ would cause the text to overflow leftwards and mess up the input line. --- diff --git a/IPython/core/completer.py b/IPython/core/completer.py index 247f9d4..3b5bfa7 100644 --- a/IPython/core/completer.py +++ b/IPython/core/completer.py @@ -708,9 +708,6 @@ class IPCompleter(Completer): self.full_lbuf = line_buffer self.lbuf = self.full_lbuf[:cursor_pos] - if text.startswith('~'): - text = os.path.expanduser(text) - #io.rprint('COMP2 %r %r %r' % (text, line_buffer, cursor_pos)) # dbg # Start with a clean slate of completions