[IPython-dev] pyreadline and Tab insertion

Vivian De Smedt vivian at vdesmedt.com
Sun Aug 17 15:06:01 EDT 2008


Ville,

Thanks for your comment. You are right. Here is an another proposition 
that seems to address the point that you highlight:

+       cursor = min(self.l_buffer.point, len(self.l_buffer.line_buffer))
+       ws = ' ' * (self.tabstop - (cursor % self.tabstop))
-       ws = ' ' * (self.tabstop - (self.line_cursor%self.tabstop))

Vivian.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20080817/dcb60e04/attachment.html>


More information about the IPython-dev mailing list