-
-
Notifications
You must be signed in to change notification settings - Fork 252
Closed
Labels
Description
Platform: Mac OS 10.6, Python 2.6.1
I think I might have found a bug with completion of filenames. On my Mac, if I type
>>> a="/
then press tab, I get
>>> a="/Applications/
┌──────────────────────────────────────────────────────────────┐
│/Applications/ /bin/ │
│/cores/ /dev/ │
│/Developer/ /etc/ │
│/home/ /Library/ │
│/mach_kernel /net/ │
│/Network/ /opt/ │
│/private/ /sbin/ │
│/System/ /tmp/ │
│/User Guides And Information/ /Users/ │
│/usr/ /var/ │
│/Volumes/ │
└──────────────────────────────────────────────────────────────┘
If I then delete the '/', and press tab again, I get
>>> a=/bin/
┌──────────────────────────────────────────────────────────────┐
│/Applications/ /bin/ │
│/cores/ /dev/ │
│/Developer/ /etc/ │
│/home/ /Library/ │
│/mach_kernel /net/ │
│/Network/ /opt/ │
│/private/ /sbin/ │
│/System/ /tmp/ │
│/User Guides And Information/ /Users/ │
│/usr/ /var/ │
│/Volumes/ │
└──────────────────────────────────────────────────────────────┘
Notice that the " has been lost. It looks like the editor still thinks it's in the mode of cycling over the original '/' completions, rather than identifying the completions of '/Applications', and so has managed to delete an extra character when switching to the next completion.
I shall have a look at the code myself, and see if I can propose a patch to fix this.
- Bitbucket: https://bitbucket.org/bobf/bpython/issue/60
- Originally Reported By: Ben Papworth
- Originally Created At: 2009-09-23T17:38:49.808
Reactions are currently unavailable