~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to shell.py

  • Committer: John Arbash Meinel
  • Date: 2009-09-22 18:20:33 UTC
  • mto: This revision was merged to the branch mainline in revision 724.
  • Revision ID: john@arbash-meinel.com-20090922182033-dghw1at79y9j1081
Possible fix for bug #431241

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
        self.identchars += '-'
100
100
        ensure_config_dir_exists()
101
101
        self.history_file = osutils.pathjoin(config_dir(), 'shell-history')
102
 
        readline.set_completer_delims(string.whitespace)
 
102
        whitespace = ''.join(c for c in string.whitespace if c < chr(127))
 
103
        readline.set_completer_delims(whitespace)
103
104
        if os.access(self.history_file, os.R_OK) and \
104
105
            os.path.isfile(self.history_file):
105
106
            readline.read_history_file(self.history_file)