Tab completion suggestions no longer have pointless repetition

The suggestions for, e.g. foo.bar. would include "foo.bar." in
every suggestion, and it seemed like a pretty pointless waste of
space, especially for a curses app.
This commit is contained in:
Bob Farrell
2008-04-27 23:43:00 +01:00
parent c4089f5cec
commit dec6a17824
+2 -1
View File
@@ -362,7 +362,8 @@ class Repl:
"""Display a list of options on the screen."""
y, x = self.scr.getyx()
items = [ i.rpartition('.')[-1] for i in items ]
def calc_lsize(r):
"""Calculate the size required on screen to display the list.
Unfortunately Python 2.x doesn't allow assigning to the scope