mirror of
https://github.com/kennethreitz-archive/bpython-gist.git
synced 2026-06-05 23:50:18 +00:00
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:
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user