[IPython-dev] pyreadline and Tab insertion

Vivian De Smedt vivian@vdesmedt....
Sun Aug 17 14:06:01 CDT 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://lists.ipython.scipy.org/pipermail/ipython-dev/attachments/20080817/dcb60e04/attachment.html 


More information about the IPython-dev mailing list