projects
/
rainbowstream.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'use_arrow'
[rainbowstream.git]
/
rainbowstream
/
interactive.py
diff --git
a/rainbowstream/interactive.py
b/rainbowstream/interactive.py
index afbbc0549a6712acc0d9433660e020a3ad1b5d30..62be3ec2ef5a9f9ce15eb9882f96fcb6520dfb90 100644
(file)
--- a/
rainbowstream/interactive.py
+++ b/
rainbowstream/interactive.py
@@
-27,11
+27,11
@@
class RainbowCompleter(object):
words = origline.split()
if not words:
words = origline.split()
if not words:
- self.current_candidates = sorted(
self.options.keys()
)
+ self.current_candidates = sorted(
[c for c in self.options]
)
else:
try:
if begin == 0:
else:
try:
if begin == 0:
- candidates =
self.options.keys()
+ candidates =
[c for c in self.options]
elif words[-1] in self.options[words[0]]:
candidates = []
else:
elif words[-1] in self.options[words[0]]:
candidates = []
else:
@@
-39,8
+39,8
@@
class RainbowCompleter(object):
candidates = self.options[first]
if being_completed:
candidates = self.options[first]
if being_completed:
- self.current_candidates = [
w for w in candidates
-
if w.startswith(being_completed)
]
+ self.current_candidates = [w for w in candidates
+
if w.startswith(being_completed)
]
else:
self.current_candidates = candidates
else:
self.current_candidates = candidates
@@
-92,4
+92,3
@@
def init_interactive_shell(d):
readline.parse_and_bind("bind ^I rl_complete")
else:
readline.parse_and_bind("tab: complete")
readline.parse_and_bind("bind ^I rl_complete")
else:
readline.parse_and_bind("tab: complete")
-