projects
/
rainbowstream.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix help
[rainbowstream.git]
/
rainbowstream
/
interactive.py
diff --git
a/rainbowstream/interactive.py
b/rainbowstream/interactive.py
index 98b9c21bc8ea08270b9ad8f6db1c675bc1114576..546d776f554947dfcace97a8b7fc24e78ab84ba5 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:
@@
-68,15
+68,15
@@
def read_history():
"""
Read history file
"""
"""
Read history file
"""
- if os.path.isfile(
HISTORY_FILENAME
):
- readline.read_history_file(
HISTORY_FILENAME
)
+ if os.path.isfile(
c['HISTORY_FILENAME']
):
+ readline.read_history_file(
c['HISTORY_FILENAME']
)
def save_history():
"""
Save history to file
"""
def save_history():
"""
Save history to file
"""
- readline.write_history_file(
HISTORY_FILENAME
)
+ readline.write_history_file(
c['HISTORY_FILENAME']
)
def init_interactive_shell(d):
def init_interactive_shell(d):