~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to shell.py

  • Committer: Aaron Bentley
  • Date: 2009-09-26 16:37:02 UTC
  • mfrom: (723.1.1 bzrtools)
  • Revision ID: aaron@aaronbentley.com-20090926163702-ofkkqksgnmcs0ldp
Merge fix for tab completion bug.

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)