From e5474c26a1bed269ef549f72f90d86f4c99aff37 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Fri, 27 Apr 2012 14:31:44 +0200 Subject: [PATCH] remove '-' from readline delims --- weboob/tools/application/repl.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/weboob/tools/application/repl.py b/weboob/tools/application/repl.py index cf2a1cf3..22137ac8 100644 --- a/weboob/tools/application/repl.py +++ b/weboob/tools/application/repl.py @@ -257,6 +257,9 @@ class ReplApplication(Cmd, ConsoleApplication): except ImportError: pass else: + # Remove '-' from delims + readline.set_completer_delims(readline.get_completer_delims().replace('-', '')) + history_filepath = os.path.join(self.weboob.workdir, '%s_history' % self.APPNAME) try: readline.read_history_file(history_filepath) @@ -377,7 +380,7 @@ class ReplApplication(Cmd, ConsoleApplication): super(ReplApplication, self).complete(text, state) # When state = 0, Cmd.complete() set the 'completion_matches' attribute by - # calling the completion function. Then, for other states, it only try to + # calling the completion function. Then, for other states, it only tries to # get the right item in list. # So that's the good place to rework the choices. if state == 0: